Page 1 of 1

Wind Direction Chart Tooltip Fix?

Posted: Sat 03 Jun 2023 4:08 pm
by Grimers
Hi all,

Is there a fix for the tooltip on the wind direction graph? I have come across many CMX sites with the wind direction tooltip showing the current values instead of random values. I have come across Cumulus Utils, but not sure if this is what is required?

Cheers!

Re: Wind Direction Chart Tooltip Fix?

Posted: Sat 03 Jun 2023 4:40 pm
by HansR
Grimers wrote: Sat 03 Jun 2023 4:08 pm Is there a fix for the tooltip on the wind direction graph? I have come across many CMX sites with the wind direction tooltip showing the current values instead of random values. I have come across Cumulus Utils, but not sure if this is what is required?
No, it is not required to use CUtils though that would solve your problem and give you some extra's. Please note that CUtils is modular and you can use the charts standalone as a module in your own website (assuming you would use the chartscompiler). All in all: yes it would require some setup and learning.

You can solve it yourself if you edit the chart code for the direction chart. You will have to do it twice: once for the interface and once for the website (assuming you use the standard website) and take care how you handle updates of CMX. You will have to dive into Highcharts, how the charts are built and how the tooltips are built. All in all it would require some programming in javascript.

Re: Wind Direction Chart Tooltip Fix?

Posted: Sat 03 Jun 2023 5:08 pm
by Grimers
Thanks, Hans.

Think I've managed to find a solution whilst scanning round the cumuluscharts.js file. Well, it works!

Re: Wind Direction Chart Tooltip Fix?

Posted: Sat 03 Jun 2023 5:24 pm
by HansR
OK. Good, but I suppose you mean the cumuluscharts.txt file? Otherwise I am confused :?

Re: Wind Direction Chart Tooltip Fix?

Posted: Tue 06 Jun 2023 7:26 am
by Grimers
I updated the cumuluscharts.js file from the latest MX release, which seemed to activate the tooltip correctly.