How do I set up some lines to follow the left axis, while the others follow the right axis in a line chart?
Question Description
I have a line chart with multiple lines. What chart tools can explicitly specify that the graph follows the left or right axis? After careful consideration, I found a line chart often has a bottom axis. Complex usage scenarios: Some of lines follow the left axis. The others follow the right axis. At the same time, all the lines follow the bottom axis. In abstract terms, it means that each line can correspond to multiple lines.
Solution
VChart charts have already provided the corresponding functionality. VChart supports the following:
- Binding dataId on series to maintain a one-to-one relationship between data and series.
- Binding seriesId on axis to maintain a one-to-many relationship between axis and series.
LineChart Series Spec Documents