Hi,
I want to use the right secondary axis on a combo chart (Column Stacked and Line)
On one of the series, i use setPlotOnSecondAxis(true);
chart
.getNSeries()
.get(2)
.setPlotOnSecondAxis(true);
But when I do that, there is still no secondary axis on chart, even if in “Change Chart Type” modal “Secondary Axis” is checked.
Maybe it need something like a refresh to work ?
chart.PNG (30.1 KB)
modal.PNG (33.7 KB)
@ThomasP6,
Could you please try to add a line if it makes any difference.
chart.getSecondValueAxis()/getSecondCategoryAxis().setVisible(true);
If you still find the issue, kindly do provide complete sample (runnable) code/JAVA program and template Excel files (input file(if any) and output file). We will check your issue soon.
PS. please zip the files prior attaching.
1 Like
It works !
Using chart.getSecondValueAxis().setVisible(true);
.
Thank you very much, @Amjad_Sahi !
@ThomasP6,
Good to know that your issue is sorted out by using the suggested line of code. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.
1 Like