{"id":15046179,"url":"https://github.com/markosko/nativescript-charts","last_synced_at":"2025-04-10T00:43:33.639Z","repository":{"id":57308442,"uuid":"72231487","full_name":"markosko/nativescript-charts","owner":"markosko","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-11T15:16:13.000Z","size":2088,"stargazers_count":11,"open_issues_count":3,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T00:43:28.366Z","etag":null,"topics":["charts","nativescript","nativescript-plugin"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markosko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-28T18:18:52.000Z","updated_at":"2024-05-30T16:13:23.000Z","dependencies_parsed_at":"2022-09-09T23:10:27.012Z","dependency_job_id":null,"html_url":"https://github.com/markosko/nativescript-charts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markosko","download_url":"https://codeload.github.com/markosko/nativescript-charts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137998,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charts","nativescript","nativescript-plugin"],"created_at":"2024-09-24T20:52:48.971Z","updated_at":"2025-04-10T00:43:33.613Z","avatar_url":"https://github.com/markosko.png","language":"TypeScript","readme":"# Chart plugin for Nativescript\nStandalone plugin, **not part of Telerik UI**\n\nAndroid uses https://github.com/PhilJay/MPAndroidChart\n\niOS not implemented\n\nPlugin for now contains Line chart type\n\n## Line type:\n\nAdd namespace `xmlns:LineChart=\"nativescript-charts/line-chart\"` \n\n*chartSettings* are type of `ILineChart`\n\n*chartData* is type of `ILineSeries`\n\nEach point is object of `{x,y}`\n\nBoth can be imported from `nativescript-charts/line-chart` \n\n### Example for LineChart\n\n```typescript\nvar points  = [\n    {x:1,y:4},\n    {x:3,y:5.9},\n    {x:7,y:4},\n    {x:8,y:10},\n    {x:10,y:1}\n];\n\nvar lineData:ILineSeries = {\n    lineData: points,\n    color:\"green\",\n    name:\"test\",  \n};\n\nvar linechartOpts:ILineChart= \u003cILineChart\u003e{\n    Legend:{\n        enabled:false,\n        form:LegendForm.CIRCLE,\n    },\n    XAxis:{\n        textSize:12,\n        textColor:\"green\",\n        position:XPosition.TOP,\n        axisMinimum:-30,\n        axisMaximum:30,\n        drawGridLines:false,\n        showOnlyMinMax:false,\n        enabled:true\n    },\n    RightYAxis:{\n        textSize:10,\n        textColor:\"green\",\n        position:YPosition.OUTSIDE_CHART,\n        axisMaximum:120,\n        axisMinimum:-10,\n        showOnlyMinMax:false,\n        drawGridLines:false,\n        enabled:true\n    },\n    LeftYAxis:{\n        textSize:10,\n        textColor:\"green\",\n        position:YPosition.OUTSIDE_CHART,\n        axisMaximum:120,\n        axisMinimum:-10,\n        showOnlyMinMax:false,\n        drawGridLines:false,\n        enabled:true\n    },\n    BaseSettings:{\n        enabledDescription:false,\n        drawGridBackground:false,\n    }\n};\n```\n\n```xml\n\u003cPage xmlns=\"http://schemas.nativescript.org/tns.xsd\" loaded=\"pageLoaded\" \n    xmlns:LineChart=\"nativescript-charts/line-chart\"\u003e\n    \u003cLineChart:LineChart  chartSettings=\"{{chartSettings}}\" chartData=\"{{chartData}}\"/\u003e\n\u003c/Page\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkosko%2Fnativescript-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkosko%2Fnativescript-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkosko%2Fnativescript-charts/lists"}