{"repo":"hustcc/echarts-for-react","free":true,"listed":false,"github":"https://github.com/hustcc/echarts-for-react","clone":"git clone https://github.com/hustcc/echarts-for-react.git","description":"⛳️ Apache ECharts components for React wrapper. 一个简单的 Apache echarts 的 React 封装。","language":"TypeScript","stars":5003,"topics":["echarts","react","react-component","javascript","echarts-for-react","visualization"],"license":"MIT","category":"mcp-servers","readme_excerpt":"echarts-for-react The simplest, and the best React wrapper for Apache ECharts. Using visualization with MCP Server mcp-server-chart. Install Then use it. You can run website. Then open http://127.0.0.1:8081/ in your browser. or see https://git.hust.cc/echarts-for-react/ which is deploy on gh-pages. Usage Code of a simple demo code showed below. For more example can see: https://git.hust.cc/echarts-for-react/ Import ECharts.js modules manually to reduce bundle size With Echarts.js v5 or v6: With Echarts.js v3 or v4: For Next.js user, code transpilation is needed. For Next.js 13.1 or higher, as all next-transpile-modules features are natively built-in and the package has been deprecated, so please add transpilePackages: ['echarts', 'zrender'] into nextConfig object: For Next.js with version function) ) binding the echarts event, will callback with the echarts event object , and the echart object as it's paramters. e.g: for more event key name, see: https://echarts.apache.org/api.html#events - opts (optional, object) the opts of echarts. object , will be used when initial echarts instance by echarts.init . Document here. - autoResize (optional, boolean) decide whether to trigger this.resize when window resize. default is true . Component API & Echarts API the Component only has one API named getEchartsInstance . - getEchartsInstance() : get the echarts instance object, then you can use any API of echarts . for example: TypeScript and useRef() example: About API of echarts, can s","default_branch":null,"files":null,"tree":[],"storefront":"/r/hustcc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hustcc/echarts-for-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}