nerixs
Posts: 7
Joined: Thu Apr 29, 2021 6:16 am

Re: How to pass a variable from javascript to TOOLTIP

Hello,
Thanks for your confirmation.
Would you have any idea or an example that would display changes (T.Ext and T ° INT) over a 24-hour period?
We do not know how to approach the thing.
Best regards.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: How to pass a variable from javascript to TOOLTIP

Hi nerixs,

I don't get this, could you explain?
"...would display changes (T.Ext and T ° INT) over a 24-hour period?"

Regards.
Sebastian Hajdus
Highcharts Developer
nerixs
Posts: 7
Joined: Thu Apr 29, 2021 6:16 am

Re: How to pass a variable from javascript to TOOLTIP

Currently, the curve displays the interior temperature (T ° Int) as a function of the exterior temperature (T.Ext).
I would like to post any changes over a 24 hour period.
A second X axis? I do not know how to do.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: How to pass a variable from javascript to TOOLTIP

Hi,
Do you want to build something similar to a meteogram?
https://www.highcharts.com/demo/combo-m ... y_hour.xml

Best regards.
Sebastian Hajdus
Highcharts Developer
nerixs
Posts: 7
Joined: Thu Apr 29, 2021 6:16 am

Re: How to pass a variable from javascript to TOOLTIP

Hello,
Yes, that’s a good possibility.
My X axis (T.Ext) would be replaced by Hourly from 0 to 24 (with a scroll if possible), but I do not understand how to reinstate my values (T ° Int, T ° Csg, Date and especially T. Ext).
Do you have time for an example?
Best regards
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: How to pass a variable from javascript to TOOLTIP

Hi,
You can show time at the second axis type data, that's should resolve your problem.

API References:
https://api.highcharts.com/highcharts/xAxis.type

Live demo:
http://jsfiddle.net/BlackLabel/Lj13ds0p/

Let me know if that was what you were looking for.
Best regards.
Sebastian Hajdus
Highcharts Developer
nerixs
Posts: 7
Joined: Thu Apr 29, 2021 6:16 am

Re: How to pass a variable from javascript to TOOLTIP

Hello,
Thanks for your help.
I did not understand your example, on the X axis I have ("T.Ext" = 1611878400000 °, 1611878400001 ° and 1611878400002 °).
I don't have the time display on the 2nd axis.
Best regards
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: How to pass a variable from javascript to TOOLTIP

Hi,

This is value of time based on a timestamp derived from Unix time.
Look at this example, it showing a concept where xaxis is type datatime and you can show something in time.

Live demo:
https://jsfiddle.net/BlackLabel/mat5upsh/

Regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”