I encountered something I find difficult to resolve in vaadin charts. I am using Bar charts where XAxis is enabled with Zoom gesture. However, as I zoomed in, there are times when the left data or right data or sometimes both, doesn’t show their data. Please see the attached screenshot for your better understanding of my situation.
Now I’ve been able to reproduce the issue. Unluckily it seems to be an
open issue in the underlying chart library that Vaadin Charts uses.
As a workaround I’ve noticed that setting CropThreshold value to the size of the data series or the amount of categories seems to work. Look at the following code snippet:
PlotOptionsColumn options = new PlotOptionsColumn();
options.setCropThreshold(120);
conf.setPlotOptions(options);
The problem with this is that it might cause performance issues if value is too high.
Thank you for the follow up. I tried the setCropThreshold() it seemed to be working. It is available in Vaadin charts 3.0.0 and will try to update my project with the latest stable Vaadin release.