echartsテーブルのいくつかのプロパティy軸目盛り垂直nameプロパティ
1504 ワード
echartsテーブルのプロパティを記録します.y軸のプロパティ名の調整に重点を置きます.
var option = { title: {
text: " "
},
color: colors,
tooltip: { //
trigger: 'axis',
axisPointer: {
type: 'cross'
}
},
grid: { //
x: 50,
y: 100,
x2: "25%",
y2: 100,
borderWidth: 10
},
xAxis: {
type: 'category',
data: this.dayLine
},
yAxis:
{
//
type: 'value',
name: `
(t)`,//es6 name y
nameRotate: 360,
nameGap: 30,
nameLocation: 'middle',
boundaryGap: false,
axisLine: { //
lineStyle: {
color: colors[0],
}
}
},
series: {
data: this.dayOil,
name: ' ',
type: 'line',
smooth: true, //
yAxisIndex: 0, // y
lineStyle: {
normal: {
color: colors[0],
width: 4
}
},
markPoint: {
label: {
normal: {
show: false,
position: 'right',
fontSize: 14
}
},
}
}
}