Page 1 of 1

Remove Sub Graph From Graphs

Posted: Tue 20 Sep 2016 8:37 pm
by Grimers
Good evening Cumulus users!

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

Kind regards,

William

Re: Remove Sub Graph From Graphs

Posted: Tue 20 Sep 2016 9:21 pm
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. :)

Re: Remove Sub Graph From Graphs

Posted: Wed 21 Sep 2016 6:46 am
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.

Re: Remove Sub Graph From Graphs

Posted: Wed 21 Sep 2016 8:42 am
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.

Re: Remove Sub Graph From Graphs

Posted: Wed 21 Sep 2016 10:43 am
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.

Re: Remove Sub Graph From Graphs

Posted: Fri 23 Sep 2016 8:26 am
by Grimers
Hello guys,

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

Thanks for your help!

Kind regards,

William