Posts: 1
Joined: Mon Sep 25, 2023 3:26 am

Programmatically start measure

Mon Sep 25, 2023 3:32 am


I'm using highcharts stock to create a chart and I want when user click on the chart start measure the difference between the first point click and the second point click.

I see an example chart using highstock with a measure function but I don't understand how to start programmatically the measurement function.

Link of chart with measurement function: ... custom-gui

Posts: 522
Joined: Tue Jan 24, 2023 11:21 am

Re: Programmatically start measure

Mon Sep 25, 2023 11:22 am


Welcome to our forum and thanks for reaching out to us with your question!

Unfortunately, there is no built-in functionality in Highstock to achieve the exact behavior you described, where the measure tool is activated on the first click and then a measurement is added on the second click.

The measure tool in Highstock tools is designed to be triggered manually by the user through the stock tools menu. It would require a custom built solution to achieve such functionality, and I'm afraid that it goes beyond the scope of this forum. If you need help with your implementation, you can try to look for it on the more general forums like StackOverflow or contact the Black Label company that specializes in Highcharts custom projects. See official Black Label site:

In case of any other questions related to Highcharts, feel free to ask anytime.
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Stock”