@@ -34,6 +34,7 @@ import {
34
34
} from '../../util/types' ;
35
35
import GlobalModel from '../../model/Global' ;
36
36
import SeriesData from '../../data/SeriesData' ;
37
+ import tokens from '../../visual/tokens' ;
37
38
38
39
// [percent, color]
39
40
type GaugeColorStop = [ number , ColorString ] ;
@@ -218,7 +219,7 @@ class GaugeSeriesModel extends SeriesModel<GaugeSeriesOption> {
218
219
show : true ,
219
220
roundCap : false ,
220
221
lineStyle : { // 属性lineStyle控制线条样式
221
- color : [ [ 1 , '#E6EBF8' ] ] ,
222
+ color : [ [ 1 , tokens . color . neutral10 ] ] ,
222
223
width : 10
223
224
}
224
225
} ,
@@ -240,7 +241,7 @@ class GaugeSeriesModel extends SeriesModel<GaugeSeriesOption> {
240
241
distance : 10 ,
241
242
// 属性lineStyle(详见lineStyle)控制线条样式
242
243
lineStyle : {
243
- color : '#63677A' ,
244
+ color : tokens . color . axisTick ,
244
245
width : 3 ,
245
246
type : 'solid'
246
247
}
@@ -256,7 +257,7 @@ class GaugeSeriesModel extends SeriesModel<GaugeSeriesOption> {
256
257
distance : 10 ,
257
258
// 属性lineStyle控制线条样式
258
259
lineStyle : {
259
- color : '#63677A' ,
260
+ color : tokens . color . axisTickMinor ,
260
261
width : 1 ,
261
262
type : 'solid'
262
263
}
@@ -265,7 +266,7 @@ class GaugeSeriesModel extends SeriesModel<GaugeSeriesOption> {
265
266
show : true ,
266
267
distance : 15 ,
267
268
// formatter: null,
268
- color : '#464646' ,
269
+ color : tokens . color . axisLabel ,
269
270
fontSize : 12 ,
270
271
rotate : 0
271
272
} ,
@@ -286,9 +287,9 @@ class GaugeSeriesModel extends SeriesModel<GaugeSeriesOption> {
286
287
offsetCenter : [ 0 , 0 ] ,
287
288
keepAspect : false ,
288
289
itemStyle : {
289
- color : '#fff' ,
290
+ color : tokens . color . neutral00 ,
290
291
borderWidth : 0 ,
291
- borderColor : '#5470c6'
292
+ borderColor : tokens . color . theme [ 0 ]
292
293
}
293
294
} ,
294
295
@@ -297,23 +298,23 @@ class GaugeSeriesModel extends SeriesModel<GaugeSeriesOption> {
297
298
// x, y,单位px
298
299
offsetCenter : [ 0 , '20%' ] ,
299
300
// 其余属性默认使用全局文本样式,详见TEXTSTYLE
300
- color : '#464646' ,
301
+ color : tokens . color . secondary ,
301
302
fontSize : 16 ,
302
303
valueAnimation : false
303
304
} ,
304
305
detail : {
305
306
show : true ,
306
- backgroundColor : 'rgba(0,0,0,0)' ,
307
+ backgroundColor : tokens . color . transparent ,
307
308
borderWidth : 0 ,
308
- borderColor : '#ccc' ,
309
+ borderColor : tokens . color . neutral40 ,
309
310
width : 100 ,
310
311
height : null , // self-adaption
311
312
padding : [ 5 , 10 ] ,
312
313
// x, y,单位px
313
314
offsetCenter : [ 0 , '40%' ] ,
314
315
// formatter: null,
315
316
// 其余属性默认使用全局文本样式,详见TEXTSTYLE
316
- color : '#464646' ,
317
+ color : tokens . color . primary ,
317
318
fontSize : 30 ,
318
319
fontWeight : 'bold' ,
319
320
lineHeight : 30 ,
0 commit comments