Alin
Posts: 26
Joined: Mon Mar 16, 2020 2:18 pm

Console error

Hi,

I have a chart with multiple series. Some of them are linked to a series with no data (empty array), used just to toggle the visibility of those series at once from the legend. This parent series is hidden (visible: false) by default. The problem is that whenever I render the chart, I get the following errors in the console:

Error: <path> attribute d: Unexpected end of attribute. Expected number, "M -100000 ".

Here's a very simple example where I still get the error:
https://jsfiddle.net/bed5qkow/1/

If I remove the visible: false option, then everything is rendered without errors.
Any idea how to fix this or if this is related to my code?

Thanks for your time!
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Console error

Hello,

This is because for the second linear series you only set one point which when linked to the hidden parent-series series generates this error.

This is a bug that you would be nice to report here: https://github.com/highcharts/highchart ... new/choose

If you have single point you can change the series type from line to scatter.
Demo: https://jsfiddle.net/BlackLabel/ftvb1rjz/

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
Alin
Posts: 26
Joined: Mon Mar 16, 2020 2:18 pm

Re: Console error

Thanks for the response.
I created also an issue on github: https://github.com/highcharts/highcharts/issues/17446

Have a nice day!
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Console error

Thanks for reporting this!

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”