Showing
1 changed file
with
8 additions
and
1 deletions
... | ... | @@ -12,7 +12,14 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { |
12 | 12 | backgroundColor: "#ffffff", |
13 | 13 | tooltip: { |
14 | 14 | show: true, |
15 | - trigger: 'item' | |
15 | + trigger: 'item', | |
16 | + textStyle: { | |
17 | + // textShadowColor: 'transparent',//文字块背景阴影颜色 | |
18 | + textShadowColor: "#fff", // 文字本身的阴影颜色 | |
19 | + textShadowBlur: 10, // 文字本身的阴影长度 | |
20 | + textShadowOffsetX: 10, // 文字本身的阴影X偏移 | |
21 | + textShadowOffsetY: 10, //阴影Y偏移 | |
22 | + }, | |
16 | 23 | }, |
17 | 24 | color: ['#46B3FD', '#FFC459', '#14C9C9'], |
18 | 25 | series: [{ | ... | ... |