Echarts implements the double Y axis and implements the data using the y-axis __echarts

Source: Internet
Author: User

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 ...



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.