1.0.1 • Published 2 years ago

react-echarts-resizeable v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-echarts-resizeable

React Function Component for Apache ECharts.

npm.io License

NPM

Installation

npm i react-echarts-resizeable

Usage

add following code to your code

import ReactECharts from 'react-echarts-resizeable';

<ReactECharts
  option={option}
  onChartReady={(chart: EChartsType) => {
    chart.connect(otherChart)
    // etc
  }}
  resizeable
/>

Props Detail:

ReactEChartsProps {
    initOpts?: {
        locale?: string | LocaleOption;
        renderer?: RendererType;
        devicePixelRatio?: number;
        useDirtyRect?: boolean;
        width?: number;
        height?: number;
    };
    onChartReady?: (echartsInstance: EChartsType) => void;
    option?: echarts.EChartsOption;
    theme?: string | object;
    noMerge?: boolean;
    lazyUpdate?: boolean;
    resizeable?: boolean;
} & React.HTMLAttributes<HTMLDivElement> // and div element props

Change Log

1.0.0

- init repository

License

This project is licensed under MIT.

1.0.1

2 years ago

1.0.0

2 years ago