echarts设置饼图,曲线阴影效果
2020-04-27 本文已影响0人
禄子_c79b
饼图: series: [
{ itemStyle: {
normal: {
//具体决定了饼状图每一份的颜色显示
//饼状图阴影,值越大阴影亮度越高
shadowBlur: 20,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
},}]
参考:https://my.oschina.net/u/3544533/blog/1612830
曲线阴影
series: [
{
name: '高度(km)与气温(°C)变化关系',
type: 'line',
smooth: true,
lineStyle: {
width: 3,
shadowColor: 'rgba(0,0,0,0.4)',
shadowBlur: 10,
shadowOffsetY: 10
},
data:[15, -50, -56.5, -46.5, -22.1, -2.5, -27.7, -55.7, -76.5]
}
]
(https://www.echartsjs.com/examples/zh/editor.html?c=line-y-category)