1000 Points Threshold

From Documentation
Revision as of 03:38, 11 June 2021 by Hawk (talk | contribs) (Created page with "{{ZKChartsEssentialsPageHeader}} If the data points (<javadoc directory="zkcharts">org.zkoss.chart.Point</javadoc>) of a series are not Number and neither array, there is a 10...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
1000 Points Threshold



If the data points (Point) of a series are not Number and neither array, there is a 1000-points limitation for rendering a series. If a series contains more than 1000 points, ZK Charts won't render that series.

Please run turboThreshold.zul in the example project, and you will see no series rendered after you click "add 1000 non-number points" button.

Zkcharts-essentials-overTurboThreshold.png

If you open chrome developer tool / console tab, you will see the error message below:

 Highcharts error #12: www.highcharts.com/errors/12

Solution

  • Put numeric data in Point.

series.add(Number) or addPoint(double)

  • Increase turbo threshold

chart.getPlotOptions().getSeries().setTurboThreshold(aLargerValue)

  • disable threhshold

chart.getPlotOptions().getSeries().setTurboThreshold(0)



< Get Complete Source Code of This Book >


Last Update : 2021/06/11

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.