Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin charts 2.1 ignores barchart axis limits when 2nd axis added

Iain Brown
6 years ago Jul 15, 2015 9:55am
Guillermo Alvarez
6 years ago Jul 24, 2015 12:08pm

Hi Iain,

I think this is caused by the calculations done when having multiple axes with aligned ticks, see the javadoc:
http://demo.vaadin.com/javadoc/com.vaadin.addon/vaadin-charts/2.1.0/com/vaadin/addon/charts/model/Axis.html#setMax(java.lang.Number)

Can you try disabling aligned ticks?

conf.getChart().setAlignTicks(false);
Iain Brown
6 years ago Jul 24, 2015 7:53pm