-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am using a column chart and when I have it showing less than 50 series on a stacked bar it creates; highcharts-series-group highcharts-column-series highcharts-series-0 highcharts-column-series
when I have more than 50 series it uses; highcharts-series-group highcharts-boost-canvas
and the boost canvas does not display as we would want.
Is there anyway of accessing the highcharts properties for either, Highcharts.chart.boost.enabled Highcharts.chart.boost.seriesThreshold so that I can disable the boost mode or set the threshold to higher than the number of series that I will have?
The ZKCharts Java API provides the most common/requested properties, to avoid duplicating the complete API.
In case a specific property is not supported (yet) you can add arbitrary attributes (as JSONObjects) via addExtraAttr(String key, JSONAware value)
Most charts API classes support this method by implementing the Optionable interface.
JSONObject boost = new JSONObject();
boost.put("enabled", false);
// if needed you can also change the threshold
// boost.put("seriesThreshold", 100);
Options options = new Options();
options.addExtraAttr("boost", boost);
chart.setOptions(options);
// in case you already have an options object -> no need to create a new one
// chart.getOptions().addExtraAttr("boost", boost);
For details please read the related documention.
Asked: 2021-06-11 21:39:42 +0800
Seen: 9 times
Last updated: Jun 15 '21