The ECharts option type for SolidEChart. Extracted directly from EChartsType['setOption'] so it stays in sync with the installed ECharts version without importing from echarts/option.
SolidEChart
EChartsType['setOption']
echarts/option
const option = (): SolidEChartOption => ({ xAxis: { type: 'category', data: ['A', 'B', 'C'] }, yAxis: { type: 'value' }, series: [{ type: 'bar', data: [1, 2, 3] }],}); Copy
const option = (): SolidEChartOption => ({ xAxis: { type: 'category', data: ['A', 'B', 'C'] }, yAxis: { type: 'value' }, series: [{ type: 'bar', data: [1, 2, 3] }],});
The ECharts option type for
SolidEChart. Extracted directly fromEChartsType['setOption']so it stays in sync with the installed ECharts version without importing fromecharts/option.