import ReactECharts from "echarts-for-react";
import classNames from "classnames";
import styles from "./index.module.less";

export default function ChartPanel({ option, className }) {
  return (
    <div className={classNames(styles.chartPanel, { className })}>
      <ReactECharts
        option={option}
        lazyUpdate={true}
        style={{
          height: "100%",
          width: "100%",
        }}
      />
    </div>
  );
}
