dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

difference between normal series and navigator series.

Hello,

I want to show annotation on last value of my series but I found series array has both my series and navigator series. Is there any way to identify normal series and navigator series?

Here is my code and you can see console log.

https://codesandbox.io/s/laughing-boyd- ... kChart.jsx
papaja
Posts: 6
Joined: Wed Mar 31, 2021 9:27 pm

Re: difference between normal series and navigator series.

You can give your series and id and then get them by id.

Code: Select all

Highcharts.get("seriesId")
dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

Re: difference between normal series and navigator series.

Hello papaja,

Thank you. That can be a possible way.

I found that constructor.name of series is different between my series and navigator series. Mine is "B" and navigator is "r". Can I distinguish series with this value?

I'm finding a way without extra computing. :)

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

Re: difference between normal series and navigator series.

Hi,
Thanks for contacting us with your question!

I think you can exclude the object If the array have element.name == "Navigator 2".

Demo:
https://codesandbox.io/s/recursing-night-ou4ty

Let me know how are you going with this.
Best regards.
Sebastian Hajdus
Highcharts Developer
dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

Re: difference between normal series and navigator series.

Thank you for the answer.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: difference between normal series and navigator series.

You're welcome!
In case of any further questions, feel free to contact us again.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”