Hi, please refer the chart below. I'm trying to create a single chart with a bar graph, points. Since the values of the bars are larger than points (i.e maximum value of the left axis is so big), they look almost 0 value. Is there any solution? I'm thinking of adding a different scale on right for points and so that it can have its own minimum and maximum. Please help if there's a better solution for this problem. If you have any further questions, I would be happy to answer. Thanks in advance.
Add 2nd axis on right with a different scale (min and max values)
Re: Add 2nd axis on right with a different scale (min and max values)
Hello,
One of the the most common solutions to this issue is what you mention: to make the right axis visible and assign a series to it.
An alternative would be to add a custom axis at the left side and assign a zone to each axis, like in the MultiScrollDemo:
One of the the most common solutions to this issue is what you mention: to make the right axis visible and assign a series to it.
An alternative would be to add a custom axis at the left side and assign a zone to each axis, like in the MultiScrollDemo:
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Add 2nd axis on right with a different scale (min and max values)
Thanks, Yeray. Adding a custom axis is definitely an option, however, I would like first to try 1st option (making right axis). Could you share examples if you have any? A GitHub link would work too. Thanks again!
Re: Add 2nd axis on right with a different scale (min and max values)
Hello,
Here another example about using custom axes:
You only need to set a series to use the right axis. Ie:
Code: Select all
chart.getSeries(1).setVerticalAxis(VerticalAxis.RIGHT);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Add 2nd axis on right with a different scale (min and max values)
This is very helpful, Yeray. Thanks for the timely help. Appreciate it! You may close this thread now.