Supercharge your Data Visualization in Solid. Powered by ECharts.
yarn add solid-echarts
npm install solid-echarts --save
pnpm install solid-echarts --save
import SolidECharts from "solid-echarts";
<SolidECharts
option={option}
style={{
width: "100%",
height: "900px",
}}
/>
Replace option
with your ECharts chart option.
For reduced bundle size:
import { SolidEChartsCore } from "solid-echarts";
import * as echarts from 'echarts/core';
import { LineChart } from 'echarts/charts';
import { GridComponent, TooltipComponent } from 'echarts/components';
import { CanvasRenderer } from 'echarts/renderers';
// Register only the components you need.
echarts.use([LineChart, GridComponent, TooltipComponent CanvasRenderer]);
<SolidEChartsCore
echarts={echarts}
option={option}
style={{
width: "100%",
height: "900px",
}}
opts={{ renderer: "canvas" }}
/>
Replace option
with your ECharts chart option.