Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling turboThreshold in Boost mode works, but still shows Error #12 #14006

Closed
nbrown96 opened this issue Aug 5, 2020 · 2 comments
Closed

Comments

@nbrown96
Copy link

nbrown96 commented Aug 5, 2020

Expected behaviour

When plotOptions.series.turboThreshold is set to 0 and boost mode is enabled, a scatter plot with many points in the format {x: number, y: number, color: rgba string} will display without error.
My understanding is that this is the best (or maybe the only) way to specify colors for individual scatter plot points.

Actual behaviour

The chart works fine, but Highcharts Error #12 shows in the console, which clutters the console.

Live demo with steps to reproduce

https://jsfiddle.net/ce8a1mz5/21/
Run the jsfiddle and observe the Highcharts warning in the console.

Product version

Noted in Highcharts v8.1.0.

Affected browser(s)

Observed in Chrome, Firefox, Edge.

@pawelfus
Copy link
Contributor

pawelfus commented Aug 6, 2020

Hi @nbrown96

Thanks for reporting the issue, but turboThreshold does not work in the boost module, see our docs: https://api.highcharts.com/highcharts/series.line.turboThreshold and error message:

This error occurs if the series.data option contains object configurations and the number of points exceeds the turboThreshold. It can be fixed by either setting turboThreshold to a higher value, or changing the point configurations to numbers or arrays.

In boost mode, turbo mode is always on, which means only array of numbers or two dimensional arrays are allowed.

Regarding this:

My understanding is that this is the best (or maybe the only) way to specify colors for individual scatter plot points.

This is the best way. Alternative solution is to split your dataset into multiple series, linked to the main series. Each series can use separate color.

You can also ignore the error:

Highcharts.addEvent(Highcharts.Chart, 'displayError', function (event) {
	if (event.code === 12) {
		event.preventDefault();
	}
});

Demo: https://jsfiddle.net/BlackLabel/skragyzh/

@KacperMadej
Copy link

Closing as not a bug and due to inactivity.

Development-Flow automation moved this from To do to Done May 10, 2021
@Izothep Izothep removed this from Done in Development-Flow Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants