Is this the effect of
?
scale
xAxis.scale boolean
is only valid in the type: 'value'. Whether
is out of the 0 value ratio. The coordinate scale will not be forced to include zero scale when set to true. It is useful in scatter plots with double numerical axes.
the configuration item is not valid after setting min and max.
inverse
Whether
xAxis.inverse boolean
is the reverse axis. New in ECharts 3.
without this operation, this function cannot be realized unless the x-axis is also flipped to the top
Please enter the code
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisLine:{
onZero:false
}
},
yAxis: {
type: 'value',
inverse:true
},
series: [{
data: [1,1,2,3,4,2,1],
type: 'line'
}]
};
copy all of the above directly to echarts DEMO to view the effect
whether yAxis.inverse is the reverse axis
yAxis{
inverse:true
},
whether the axis of the xAxis.axisLine.onZero X or Y axis is on the 0 scale of the other axis is valid only if the other axis is a numerical axis and contains the 0 scale.
xAxis{
axisLine{
onZero:true
}
}