File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/vmind/src/atom/specInsight Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
import type { SpecInsightCtx , SpecInsightOptions } from '../../types' ;
2
3
import { AtomName } from '../../types/atom' ;
3
4
import { BaseAtom } from '../base' ;
@@ -9,7 +10,7 @@ import { isStackChart } from '../dataInsight/utils';
9
10
import { Factory } from '../../core/factory' ;
10
11
import type { BaseAtomConstructor } from '../../types' ;
11
12
import type { DataItem } from '@visactor/generate-vchart' ;
12
- import VChart from '@visactor/vchart' ;
13
+
13
14
// 辅助函数:通用值比较
14
15
function compareValues ( a : any , b : any ) : number {
15
16
// 如果是日期字符串,转换为时间戳比较
@@ -415,7 +416,7 @@ export class SpecInsightAtom extends BaseAtom<SpecInsightCtx, SpecInsightOptions
415
416
// return [0]; // 其他数据用实线
416
417
// })`
417
418
418
- spec . line . style . lineDash = function ( data ) {
419
+ spec . line . style . lineDash = function ( data : any ) {
419
420
return data . forecast ? [ 5 , 5 ] : [ 0 ] ;
420
421
} ;
421
422
You can’t perform that action at this time.
0 commit comments