In the use of echarts, we often use the double Y axis to show the data, sometimes, we may need to set up, specific use of a y-axis to show a specific data.
As shown in the figure: we have two y-axis, there are 3 data, this figure has two bad points: 1. Does not indicate that the left and right coordinates are specifically displayed, 2. It is clear that the number of visitors today and the number of visitors to yesterday needs to be compared using the same coordinates for the data.
Settings after optimization:
1. The setting of the double y axis, plus the concrete is used to display what data
2, set the specific data to use a certain y-axis to show
where Yaxisindex, which defaults to 0, is used when there are multiple y-axis axes in a single chart instance, so we can set this to implement specific data using a specific y-axis display. Great bang ...