{"id":4274,"url":"https://github.com/moldray/react-native-ichart","last_synced_at":"2025-08-04T01:31:40.650Z","repository":{"id":57337543,"uuid":"47668266","full_name":"moldray/react-native-ichart","owner":"moldray","description":"ichart for react-native","archived":false,"fork":false,"pushed_at":"2015-12-18T10:18:23.000Z","size":61,"stargazers_count":22,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T14:15:05.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moldray.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":"2015-12-09T04:23:45.000Z","updated_at":"2023-03-09T02:24:33.000Z","dependencies_parsed_at":"2022-09-10T02:52:16.307Z","dependency_job_id":null,"html_url":"https://github.com/moldray/react-native-ichart","commit_stats":null,"previous_names":["adonrain/react-native-ichart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moldray/react-native-ichart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldray%2Freact-native-ichart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldray%2Freact-native-ichart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldray%2Freact-native-ichart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldray%2Freact-native-ichart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moldray","download_url":"https://codeload.github.com/moldray/react-native-ichart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldray%2Freact-native-ichart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268630353,"owners_count":24281198,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-01-05T20:17:06.564Z","updated_at":"2025-08-04T01:31:40.329Z","avatar_url":"https://github.com/moldray.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["UI"],"readme":"# react-native-ichart\n\nichart for react-native\n\nbased on ichart: https://github.com/wanghetommy/ichartjs\n\n---\n\n## Install\n\n```\n$ npm i react-native-ichart --save\n```\n\n## Usage\n\ninit a new project with the name \"IchartExample\", and place the following codes into index.ios.js, then you can see the demo.\n\n```\n'use strict';\n \nimport React from 'react-native';\nimport IChart from 'react-native-ichart';\n \nconst {\n    View,\n    Component,\n    AppRegistry\n} = React;\n \nconst styles = {\n    ichart: {\n        width: 320,\n        height: 240\n    }\n};\n\nexport default class IchartExample extends Component {\n    renderChart() {\n        var data = [{\n            name: '北京',\n            value: [-9, 1, 12, 20, 26, 30, 32, 29, 22, 12, 0, -6],\n            color: '#1f7e92',\n            line_width: 3\n        }];\n        var chart = new iChart.LineBasic2D({\n            render: 'canvas-container',\n            data: data,\n            title: '北京2012年平均温度情况',\n            width: 300,\n            height: 200,\n            coordinate: {\n                height: '90%',\n                background_color: '#f6f9fa'\n            },\n            sub_option: {\n                hollow_inside: false, //设置一个点的亮色在外环的效果\n                point_size: 16\n            },\n            labels: [\"一月\", \"二月\", \"三月\", \"四月\", \"五月\", \"六月\", \"七月\", \"八月\", \"九月\", \"十月\", \"十一月\", \"十二月\"]\n        });\n        chart.draw();\n    }\n    render() {\n        return (\n            \u003cView\u003e\n                \u003cIChart\n                    render={this.renderChart}\n                    style={styles.ichart}\n                /\u003e\n            \u003c/View\u003e\n        )\n    }\n}\n\nAppRegistry.registerComponent('IchartExample', () =\u003e IchartExample);\n```\n\n## LICENSE\n\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoldray%2Freact-native-ichart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoldray%2Freact-native-ichart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoldray%2Freact-native-ichart/lists"}