{"id":13531509,"url":"https://github.com/liekkas/re-echarts","last_synced_at":"2025-04-01T19:32:13.637Z","repository":{"id":57126852,"uuid":"55418298","full_name":"liekkas/re-echarts","owner":"liekkas","description":":car: react echarts","archived":false,"fork":false,"pushed_at":"2018-01-30T07:24:23.000Z","size":395,"stargazers_count":39,"open_issues_count":3,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T04:34:20.424Z","etag":null,"topics":["echarts","react"],"latest_commit_sha":null,"homepage":"http://liekkas.github.io/re-echarts/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liekkas.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-04-04T14:32:48.000Z","updated_at":"2025-03-14T15:48:49.000Z","dependencies_parsed_at":"2022-08-31T08:24:07.357Z","dependency_job_id":null,"html_url":"https://github.com/liekkas/re-echarts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liekkas%2Fre-echarts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liekkas%2Fre-echarts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liekkas%2Fre-echarts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liekkas%2Fre-echarts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liekkas","download_url":"https://codeload.github.com/liekkas/re-echarts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700646,"owners_count":20819910,"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":["echarts","react"],"created_at":"2024-08-01T07:01:03.545Z","updated_at":"2025-04-01T19:32:11.660Z","avatar_url":"https://github.com/liekkas.png","language":"JavaScript","funding_links":[],"categories":["Frameworks"],"sub_categories":["React Component"],"readme":"react + echarts\n\n[在线DEMO](http://liekkas.github.io/re-echarts)\n\n### 安装使用\n\u003e* npm install re-echarts --save\n```\n  import ECharts from 're-echarts'\n  ...\n  render() {\n      const { mapOption, dayOption, nightOption, mapConfig, dayConfig, nightConfig } = this.state\n      return (\n        \u003cdiv style={styles.root}\u003e\n          \u003cECharts option={mapOption} config={mapConfig} style={styles.map} /\u003e\n          \u003cdiv style={styles.container}\u003e\n            \u003cECharts option={dayOption} config={dayConfig} style={styles.day}/\u003e\n            \u003cECharts option={nightOption} config={nightConfig} style={styles.night}/\u003e\n          \u003c/div\u003e\n        \u003c/div\u003e\n      )\n    }\n```\n详情见[示例代码](https://github.com/liekkas/re-echarts/blob/master/example/App.js)\n*注意如果没有安装react/echarts需要一并安装 npm i react echarts --save*\n\n### 开始\n\u003e* git clone https://github.com/liekkas/re-echarts.git\n\u003e* npm i\n\u003e* npm run dev\n\u003e* open http://localhost:3000\n\n### 特性\n\u003e* 支持ECharts4.*\n\u003e* 支持事件联动\n\u003e* 支持动态换肤\n\u003e* 支持动态缩放\n\n### Props\n```\n * option: 图表的配置项和数据\n * notMerge: 可选，是否不跟之前设置的option进行合并，默认为false，即合并\n * lazyUpdate: 可选，在设置完option后是否不立即刷新画布，默认为false，即立即刷新\n * style: 图表容器的样式,默认高宽100%\n * className\n * config: 设置\n *    theme: 主题\n *    event: 事件\n *    showLoading: 是否呈现加载效果\n *    loadingOption: 加载效果设置\n * id: 图表id,可选\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliekkas%2Fre-echarts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliekkas%2Fre-echarts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliekkas%2Fre-echarts/lists"}