小程序mpvue框架引入echarts https://github.com/mpvue/examples/tree/master/echarts
let inform = {
color: ["#ff98be"],
grid: {
containLabel: true
},
xAxis: {
type: 'category',
nameLocation:'end',
boundaryGap: true,
data: ['2.15-2.23', '3.15-3.23', '4.15-4.23', '5.15-5.23', '6.15-6.23', '7.15-7.23'],
axisLabel: {
interval:0,
rotate:40
} //文字超出设置
// show: false
},
yAxis: {
x: 'center',
type: 'category',//(自定义刻度)
splitLine: {
lineStyle: {
type: 'solid'
}
},data: ['推迟', '正常', '提前'], //(自定义刻度)
// show: false
},
series: [{
type: 'line',
smooth: false,
data: ['推迟', '正常', '提前', '正常', '提前', '正常']
}]
};