右上角下载去除不显示:
toolbox:{} ,这里的代码注释
在图表上加文字显示:
series :下的
label: {
formatter: (params) => {
return `${params.name}`;
},
color: "#fff",
position: "inside",
},
背景设置横线 是虚线:
yAxis: [
{
type: "value",
splitLine: {
lineStyle: {
// 设置背景横线
color: '#42454B',
type: 'dashed'
}
},
},
],
背景色渐变:
series下面:
areaStyle: {
opacity: 0.8,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 1,
color: "#071034",
},
{
offset: 0,
color: "#1CFAFE",
},
]),
},