File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 5
5
BUNDLE_SIZE_DEFAULT_CASE ,
6
6
LINE_CHART_DEFAULT_CONFIG ,
7
7
BASE_PADDING ,
8
+ PRODUCT ,
8
9
} from '@/shared/constant' ;
9
10
import { Filters , useFilterResult } from './Filters' ;
10
11
import { useEffect , useRef } from 'react' ;
@@ -64,6 +65,10 @@ export const ContentBundleSize = (props: { productIndex: string }) => {
64
65
value : `${ datum . y } KB` ,
65
66
} ) ,
66
67
} ,
68
+ slider : {
69
+ start : productName === PRODUCT . MODERNJS_FRAMEWORK ? 0.85 : 0 ,
70
+ end : 1 ,
71
+ } ,
67
72
} ) ;
68
73
69
74
chartInstance . current . render ( ) ;
Original file line number Diff line number Diff line change 5
5
COMPILE_SPEED_DEFAULT_CASE ,
6
6
LINE_CHART_DEFAULT_CONFIG ,
7
7
BASE_PADDING ,
8
+ PRODUCT ,
8
9
} from '@/shared/constant' ;
9
10
import { Filters , useFilterResult } from './Filters' ;
10
11
import { useEffect , useRef } from 'react' ;
@@ -64,6 +65,10 @@ export const ContentCompileSpeed = (props: { productIndex: string }) => {
64
65
value : datum . y + 's' ,
65
66
} ) ,
66
67
} ,
68
+ slider : {
69
+ start : productName === PRODUCT . MODERNJS_FRAMEWORK ? 0.85 : 0 ,
70
+ end : 1 ,
71
+ } ,
67
72
} ) ;
68
73
69
74
chartInstance . current . render ( ) ;
Original file line number Diff line number Diff line change 5
5
INSTALL_SPEED_METRICS ,
6
6
INSTALL_SPEED_DEFAULT_CASE ,
7
7
LINE_CHART_DEFAULT_CONFIG ,
8
+ PRODUCT ,
8
9
} from '@/shared/constant' ;
9
10
import { Filters , useFilterResult } from './Filters' ;
10
11
import { useEffect , useRef } from 'react' ;
@@ -94,6 +95,10 @@ export const ContentInstallSpeed = (props: { productIndex: string }) => {
94
95
} ;
95
96
} ,
96
97
} ,
98
+ slider : {
99
+ start : productName === PRODUCT . MODERNJS_FRAMEWORK ? 0.85 : 0 ,
100
+ end : 1 ,
101
+ } ,
97
102
} ) ;
98
103
99
104
chartInstance . current . render ( ) ;
Original file line number Diff line number Diff line change @@ -150,8 +150,4 @@ export const LINE_CHART_DEFAULT_CONFIG: Partial<LineOptions> = {
150
150
size : 3 ,
151
151
} ,
152
152
stepType : 'vh' ,
153
- slider : {
154
- start : 0 ,
155
- end : 1 ,
156
- } ,
157
153
} ;
You can’t perform that action at this time.
0 commit comments