JamesW
Posts: 37
Joined: Wed Feb 03, 2021 3:33 pm

Error message in console when rendering circle or rect annotation.

Hi

When I render a circle or rectangle annotation I get an error message in the console, the shape renders correctly, I just wondered if you have come across it before as I can't seem to find the cause or any info on what it might be.

The error message when rendering a circle is:

Error: <circle> attribute cx: Expected length, "NaNNaNNaN". highstock.src.js:8050

I have used code from this example: https://jsfiddle.net/gh/get/library/pur ... ntrollable

my Highchart options object is:
{
shapeOptions: { stroke: 'black', strokeWidth: 1 },
shapes: [
{
type: 'circle',
point,
r: 4,
},
],
}
as I said it all renders and works fine I just get the error in my console.

I am using React with the highcharts-react-official wrapper.

Thanks.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Error message in console when rendering circle or rect annotation.

Hi,
We appreciate you reaching out to us.

This error's weird because in your demo you are using highcharts.js but error it's from highstock.js.

Could you reproduce your issue with this occur error at the online code editor?

I'm waiting for news from you.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”