ehcharts旭日图鼠标经过样式
时间: 2023-07-05 15:27:09 浏览: 40
您可以通过设置 `series` 中的 `label` 属性来改变鼠标经过时标签的样式,例如:
```js
series: [
{
type: 'sunburst',
...
label: {
show: true,
color: '#333',
fontWeight: 'bold',
fontSize: 14,
backgroundColor: '#fff',
padding: [5, 10],
borderRadius: 5,
shadowBlur: 3,
shadowColor: '#aaa'
},
...
}
]
```
还可以通过设置 `emphasis` 属性来改变鼠标经过时扇形区域的样式,例如:
```js
series: [
{
type: 'sunburst',
...
emphasis: {
itemStyle: {
borderWidth: 2,
borderColor: '#fff',
shadowBlur: 10,
shadowOffsetX: 0,
shadowOffsetY: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
},
...
}
]
```
这里的 `itemStyle` 属性可以控制扇形区域的样式,包括边框宽度、边框颜色、阴影等。