Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Changing Font Style Of Tooltip In Graphs

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Changing Font Style Of Tooltip In Graphs

Post by Grimers »

Hello,

Is it possible to change the style of the font for the graph values when displayed on hovering over the graph from bold to normal e.g. 13.6°C?

Many thanks,

William
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by mcrossley »

I wondered why you deleted the thread I just replied to!

Yes, you need to change the tooltip definitions in cumuluscharts.js, the documentation is here: http://api.highcharts.com/highcharts#tooltip
You will probably need to use a formatter function.

Be aware though that MX undergoes regular releases, and these files may be subject to change by Steve, so you might have to redo your work.
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by Grimers »

Thanks, Mark. I'm not too worried about making changes because I simply copy my old files I've changed over in to the new version. :)

Ok, I've just looked through that but nowhere does it mention formatting text...
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by mcrossley »

Did you look at formatter: Function and the examples that it links to? That is all about formatting the data and text.
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by Grimers »

mcrossley wrote:Did you look at formatter: Function and the examples that it links to? That is all about formatting the data and text.
EDIT: Fixed it now, thanks very much for the help, Mark. Very appreciated. :)
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by mcrossley »

No it doesn't, Steve is using the default format, but you want to change that default formatting which HighCharts provides, so you will have to write a formatter function to do that.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by steve »

Isn't the tooltip pointFormat string an easier way to do this? The default is

<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>

You just need the same string without the <b> and the </b>
Steve
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by Grimers »

steve wrote:Isn't the tooltip pointFormat string an easier way to do this? The default is

<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>

You just need the same string without the <b> and the </b>
You're correct, I was just about to try that actually, when I finally found out that was the way, thanks guys for your help.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by mcrossley »

steve wrote:Isn't the tooltip pointFormat string an easier way to do this?
Doh! Yes it is :bash:
duke

Re: Changing Font Style Of Tooltip In Graphs

Post by duke »

Grimers wrote:Thanks, Mark. I'm not too worried about making changes because I simply copy my old files I've changed over in to the new version. :)
You can't simply copy your old 'modified' files to a newer version of MX, you will need to go through the file to make yourself aware of updates Steve may have made elsewhere in the file. If you simply copy over your files you may well be making parts of your new installation old.

Helpfully Steve has started posting which files have he has updated and using a program like Beyond Compare will speed up the search for any changes.
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by Grimers »

duke wrote:
Grimers wrote:Thanks, Mark. I'm not too worried about making changes because I simply copy my old files I've changed over in to the new version. :)
You can't simply copy your old 'modified' files to a newer version of MX, you will need to go through the file to make yourself aware of updates Steve may have made elsewhere in the file. If you simply copy over your files you may well be making parts of your new installation old.

Helpfully Steve has started posting which files have he has updated and using a program like Beyond Compare will speed up the search for any changes.
No, I understand that. But, all I'm saying is is that I want my pages to stay the same to what I have modified to and as long as they are processed by the new build then what's wrong with that?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by steve »

You should be OK doing that, it's quite likely that your modified pages and javascript will work fine with new releases of MX. As Duke suggests, you need to watch for any files changing in the release which might affect your modifications - it should be fairly obvious if they do.
Steve
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Changing Font Style Of Tooltip In Graphs

Post by Grimers »

steve wrote:You should be OK doing that, it's quite likely that your modified pages and javascript will work fine with new releases of MX. As Duke suggests, you need to watch for any files changing in the release which might affect your modifications - it should be fairly obvious if they do.
Thanks, Steve. I've downloaded the file that Mark has given me which I'm very appreciative of. It's a nice piece of software and I've checked both files and they look ok with just my slight modifications.
Locked