I want to create a Drilldown BarChart with HighCharts: When I drilldown from main series, I have 64 categories to display and want to display 20 of them in my panel.
Is there any possibility to deal with xAxis to do so?
Or a clue to creates a pagination?
Hello, you can use setMax() on the xAxis to tell maximum value to show and then use configuration.getScrollbar().setEnabled(true); so a scrollbar will appear for the rest.
Thank you very much for your answer!
It works but it leads to another problem: if chart has to display less than 20 categories, it will display empty lines in order to reach the xAxis maximum.
With the setMax() + scrollbar I would just write some extra logic to “manually” adjust the setMax() and visibility of scrollbar if there are too few entries.
I haven’t tried it in V14, but you can try something like addDrilldownListener(…)
There are also drill-up listeners. It does mention in docs that it’s intended to provide drill down data asynchronously there, so might not work. In V24 theres a setDrilldownCallback that I use for this purpose.
Thank you Markuns for your hints.
I have a Vaadin 24 version of my application and everything works perfectly with Paola’s advice (configuration.getxAxis().setCeiling(20);)