Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

echarts-next-for-react

BigFaceMaster162MIT1.1.1TypeScript support: included

Echarts(v5.x | next) components for react.

react, component, echarts-react, echarts, react-echarts, echarts-next-react, echarts-next, echarts-v5-react, echarts-v5, chart, charts, graph, react-component

readme

echarts-next-for-react

Basic CI Publish CI Deploy Site npm docs by dumi Build With father npm echarts supported react supported

English | 中文

Apache ECharts (incubating (v5.x | next)) components for react.

Refer to the echarts-for-react

Demo

1. install

npm install echarts-next-for-react -s

Or

yarn add echarts-next-for-react

2. Code

import EChartsNextForReactCore from 'echarts-next-for-react';

const demo = () => {
  const option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
      type: 'value',
    },
    series: [
      {
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
      },
    ],
  };

  return <EChartsNextForReactCore option={option} />;
};

export default demo();

3. Params

see Apache ECharts.

Tasks

  • [ ]
  • <input disabled="" type="checkbox"> support echarts-gl

LICENSE

MIT