react-echarts-resizable
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-echarts-resizable

React Function Component for Apache ECharts.

License

NPM

Installation

npm i react-echarts-resizable

Usage

add following code to your code

import ReactECharts from 'react-echarts-resizable';

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

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;
    resizable?: boolean;
} & React.HTMLAttributes<HTMLDivElement> // and div element props

Change Log

1.0.0

- init repository

License

This project is licensed under MIT.

/react-echarts-resizable/

    Package Sidebar

    Install

    npm i react-echarts-resizable

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    426 kB

    Total Files

    15

    Last publish

    Collaborators

    • wangtiezhu92