Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Remove Sub Graph From Graphs

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
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:

Remove Sub Graph From Graphs

Post by Grimers »

Good evening Cumulus users!

Is it possible to remove the scalable graph from the graphs?

Kind regards,

William
Last edited by Grimers on Fri 23 Sep 2016 8:26 am, edited 1 time in total.
Mapantz
Posts: 1815
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Remove Sub Graph From Graphs

Post by Mapantz »

I think it is, but if i'm not mistaken, it is part of highstock.js rather than highcharts? Which means that there could be a fair bit of code to change in order to remove it.

That was probably very unhelpful. I thought it was the rangeSelector: { but that is for the buttons I think?!

mcrossley would know. :)
Image
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: Remove Sub Graph From Graphs

Post by Grimers »

Hi Mapantz,

Yes, I looked in the highstock.js file but then when I searched online I found that the coded I needed to change was in the grid.js file. I needed to change this code from:

Code: Select all

navigator: {
		enabled: true
},
To:

Code: Select all

navigator: {
		enabled: false
},
But, this didn't change anything which I thought was bizzare seen as everyone else had managed to remove it this way.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Remove Sub Graph From Graphs

Post by mcrossley »

I just tried setting navigator enabled = false in the main script and that worked OK.
I haven't tried using the grid.js which sets the theme - I also haven't checked if disabling the navigator is possible in a theme.
Mapantz
Posts: 1815
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Remove Sub Graph From Graphs

Post by Mapantz »

I just tried it too:

Code: Select all

navigator: {
      enabled: false
},
in the cumuluscharts.js and it worked. You'll have to add it to each function. It didn't work in the grid-light.js though.
Image
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: Remove Sub Graph From Graphs

Post by Grimers »

Hello guys,

I've managed to remove it from all the graphs.

Thanks for your help!

Kind regards,

William
Post Reply