highslide-software/highcharts.com — Issue #697: Point distance variations + dataGrouping + ordered axis crashes browser
Author: eolsson
Created: 2012-01-12 15:08:56+00:00
State: open
Labels: Bug, Highstock

This is a somewhat complicated setup that uses various features in combination. The cause seems to be that the number of group positions gets very high (as seen in the debugger about 600000 positions) and the data grouping calculations cant handle this amount of points in reasonable time.

The example adds a point each second in a timer; the run button toggles this timer and it is disabled from start.

1. Start here: http://jsfiddle.net/highcharts/vv3Sd/10/
2. Click 'run'
3. The time it takes to render is logged to the console.

4. Enable data grouping
5. Click 'run' again

Result: This is the failure case, the browser is stuck in calculating dataGrouping

Workaround:
* Disable datagrouping
* Disable ordinal x axis
* Increase the timout to be 2 seconds instead of 1