mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-13 19:42:15 +08:00
初始化3.0.0版本
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { getBasicChartConfig } from '@src/constants/chartConfig';
|
||||
|
||||
export const getChartConfig = (title: string) => {
|
||||
return {
|
||||
option: getBasicChartConfig({
|
||||
title: { text: title },
|
||||
tooltip: { enterable: true },
|
||||
}),
|
||||
seriesCallback: (lines: { name: string; data: [][] }[]) => {
|
||||
// series 配置
|
||||
return lines.map((line) => ({
|
||||
...line,
|
||||
lineStyle: {
|
||||
width: 1,
|
||||
},
|
||||
symbol: 'emptyCircle',
|
||||
symbolSize: 4,
|
||||
emphasis: {
|
||||
disabled: true,
|
||||
},
|
||||
}));
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user