轴线的名字
轴线的样式
xAxis: {
type: 'category',
name:'时间',
axisLine:{
lineStyle:{
color: '#f74c4c'
}
}
},
轴线显示tooltip
lineChart.dispatchAction({
type: 'showTip',
seriesIndex:0, // 显示第几个series
dataIndex: 0 // 显示第几个数据
});
轴心圆点样式
series: [{
data: this.state.brushHabits,
type: 'line',
symbol: 'circle',
symbolSize: 10, //设定实心点的大小
itemStyle: {
normal: {
color: 'red',
lineStyle: {
color: '#87c7d3'
},
}
}
}]
})
轴线分割
yAxis: {
type: 'value',
axisLabel:{
formatter: '{value}次'
},
max : 4,
min : 0,
splitNumber : 4,
axisLine: {
lineStyle: {
color: "#87c7d3"
}
}
},
轴心提示
tooltip: {
formatter: "{b}:00点 {c}次",
},
图标间隙
grid: {
left: 30,
top: 10,
right: 0
},