1000 Points Threshold"

From Documentation
(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...")
 
m (correct highlight (via JWB))
 
Line 12: Line 12:
  
 
= Solution =
 
= Solution =
* Put numeric data in <tt>Point</tt>.
+
* Put numeric data in <code>Point</code>.
<tt>series.add(Number)</tt> or <tt>addPoint(double)</tt>
+
<code>series.add(Number)</code> or <code>addPoint(double)</code>
 
* Increase turbo threshold
 
* Increase turbo threshold
<tt>chart.getPlotOptions().getSeries().setTurboThreshold(aLargerValue)</tt>
+
<code>chart.getPlotOptions().getSeries().setTurboThreshold(aLargerValue)</code>
 
* disable threhshold
 
* disable threhshold
<tt>chart.getPlotOptions().getSeries().setTurboThreshold(0)</tt>
+
<code>chart.getPlotOptions().getSeries().setTurboThreshold(0)</code>
  
  

Latest revision as of 02:57, 18 January 2022

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 : 2022/01/18

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