Echarts图例组件
数据最值平均值
series: [{
markLine: {
data: [
{type: 'average', name: '平均值'} 平均值
]
},
markPoint: {
data: [
{type: 'max', name: '最大值'},
{type: 'min', name: '最小值'}, 最值
]
}
}]
数据显示
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line折线/shadow柱状图/cross十字准星',
crossStyle: {
color: '#fff'
}
}
}
XY轴单位
yAxis: {
axisLabel:{
formatter: '{value} (万元)'
}
}
XY轴标题
yAxis: {
name:'万元'
}
数据图例切换
toolbox: {
show: true,
feature: {
dataZoom: {
yAxisIndex: 'none'
},
dataView: {
readOnly: false
},
magicType: {
type: ['line', 'bar']
}
}
}
X轴字体倾斜角度
xAxis: {
axisLabel: {
interval:0,
rotate:40
}
gird: {
left:'10%',
bottom:35%
}
本文由 Aron创作,采用 知识共享署名4.0 国际许可协议进行许可 本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名 最后编辑时间为: December 02, 2019 at 16:20 pm.
原文地址:Silence Star https://www.liusong.vip/archives/echaets