|
|
@@ -1,7 +1,7 @@
|
|
|
-import type { ChartOption, SplitData } from '../../types/index.ts';
|
|
|
-import type { ScatterSeriesOption } from 'echarts/types/src/chart/scatter/ScatterSeries';
|
|
|
-import type { LabelOption } from 'echarts/types/src/util/types';
|
|
|
-import { CHART_COLORS } from '../constants/colors.ts';
|
|
|
+import type { ChartOption, SplitData } from '../../types/index';
|
|
|
+// import type { ScatterSeriesOption } from 'echarts/types/src/chart/scatter/ScatterSeries';
|
|
|
+// import type { LabelOption } from 'echarts/types/src/util/types';
|
|
|
+import { CHART_COLORS } from '../constants/colors';
|
|
|
|
|
|
export class MarkerProcessor {
|
|
|
private readonly operateColor = CHART_COLORS.OPERATE;
|
|
|
@@ -27,7 +27,7 @@ export class MarkerProcessor {
|
|
|
textBorderWidth: 2,
|
|
|
fontSize: 14,
|
|
|
fontWeight: 'bolder'
|
|
|
- } as LabelOption,
|
|
|
+ },
|
|
|
itemStyle: {
|
|
|
color: 'transparent'
|
|
|
}
|
|
|
@@ -44,7 +44,7 @@ export class MarkerProcessor {
|
|
|
yAxisIndex: 1,
|
|
|
data: markersData,
|
|
|
tooltip: { show: false }
|
|
|
- } as ScatterSeriesOption);
|
|
|
+ } as any);
|
|
|
}
|
|
|
|
|
|
add3OnTopOfVolumeMarkers(option: ChartOption, data: SplitData): void {
|
|
|
@@ -69,7 +69,7 @@ export class MarkerProcessor {
|
|
|
textBorderWidth: 2,
|
|
|
fontSize: 14,
|
|
|
fontWeight: 'bolder'
|
|
|
- } as LabelOption,
|
|
|
+ } as any,
|
|
|
itemStyle: {
|
|
|
color: 'transparent'
|
|
|
}
|
|
|
@@ -86,7 +86,7 @@ export class MarkerProcessor {
|
|
|
yAxisIndex: 1,
|
|
|
data: markersData,
|
|
|
tooltip: { show: false }
|
|
|
- } as ScatterSeriesOption);
|
|
|
+ } as any);
|
|
|
}
|
|
|
|
|
|
addMiddleLinesToChartOption(option: ChartOption, data: SplitData): void {
|