Arun dhiman
Posts: 3
Joined: Mon Jun 13, 2022 11:56 am

Add Series Type

How can i add series type with custom data in stock but in dynamically :oops: :oops:
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Add Series Type

Hello Arun dhiman!
Welcome to our forum and thanks for contacting us with your question!

You can change series type and data on click some button by using a series.update method. Check the demo below to see a simple example.

Demo: https://jsfiddle.net/BlackLabel/Lnfqcbym/
API Reference: https://api.highcharts.com/class-refere ... ies#update

Let me know if that was what you were looking for.
Regards!
Hubert Kozik
Highcharts Developer
Arun dhiman
Posts: 3
Joined: Mon Jun 13, 2022 11:56 am

Add Series Type

Thanks for a reply...

1. But my question is for indicator like if i need to add new indicator which series is not available in highchart so how can i add that indicator and how can i pass the data to indicator
2. Secondly I also implement custom shapes like circle, triangle, rotate triangle etc. how can i add this
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Add Series Type

Arun dhiman,

1) Yes, you can add custom technical indicators to Highcharts Stock. Here is an ideal article for you where you can read everything about this: https://www.highcharts.com/docs/stock/c ... indicators

2) Sure you can do all of these things by using different methods of the Highcharts SVG Renderer. Here you can find documentation of this method: https://api.highcharts.com/class-refere ... 1649064166 Also you will find there some examples.

Regards!
Hubert Kozik
Highcharts Developer
Arun dhiman
Posts: 3
Joined: Mon Jun 13, 2022 11:56 am

Add custom annotation with complex shape

Hii, Team Good Morning...

How can we add custom annotation in high chart like we need to add curve, double curve, and arc but also configure its size it if it is not possible in high charts then also add the solution for it, like we add a custom function...
Thanks
Arun Dhiman
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Add Series Type

Hello Arun dhiman!

If you want to add annotations to a point you can use our annotation module. You can read more about it in this article here: https://www.highcharts.com/docs/advance ... ons-module

But I assume that you meant using some tools to draw shapes on the chart. In this case, you can use a Stock Tools which is a Highcharts Stock module for building a GUI that enables user interaction with the chart, such as adding annotations, technical indicators or just for zooming in or out. You can read more about this module here: https://www.highcharts.com/docs/stock/stock-tools

Here you can find an example with Stock Tools: https://jsfiddle.net/gh/get/library/pur ... -tools-gui
In this demo, you can draw lines, tunnels, circles, rectangles, curves etc.

Let me know if you have any further questions.
Kind regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Stock”