krshnhari
Posts: 15
Joined: Thu Jan 09, 2020 11:43 am

[Custom Indicator] Inherit properties from parent series

Hello,

In a custom indicator, is it possible to inherit properties such as color, lineWidth, etc. from the parent series to which an indicator series is linked to?

As a workaround, I am currently assigning the same color explicitly to both the series to get the desired effect.

Thanks,
Krishna
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: [Custom Indicator] Inherit properties from parent series

Hello, thanks for contacting us with your question!
There is no implemented way of inheriting those options from the linked series. It is not implemented, because it would decrease the visibility of the chart when multiple series would have the same appearance. You can implement it in a simple way. Check the following demo, and let me know if that works for you: https://jsfiddle.net/BlackLabel/29a8d04L/

Kind regards,
Paweł Lysy
Highcharts Developer
krshnhari
Posts: 15
Joined: Thu Jan 09, 2020 11:43 am

Re: [Custom Indicator] Inherit properties from parent series

Thanks for the useful information and the demo, Paweł !
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: [Custom Indicator] Inherit properties from parent series

You're welcome! In case of any further questions feel free to contact us again! Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”