Commit 39c884bee758d458321eef4f18d0289ebbc8c473

Authored by 周铨
1 parent d10a945e

解决饼图悬浮提示有黑色阴影的问题

... ... @@ -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: [{
... ...