Changing graphs in emoncms?

I'm currently hosting opencms on my own server and I'm wondering if there is a way to:

A) Change the colors of the realtime graphs from that yellow/brown color (ewww!)

AND

B) Remove the tooltips from the realtime graphs?

I've also noticed that the multigraphs do not update real-time and you have to refresh the page.  Is there any way to modify these so they update real-time like the realtime graphs do?

 

TrystanLea's picture

Re: Changing graphs in emoncms?

Hello dallaskincaid, yes if your willing to modify the source a bit, you can change the color by editing the line here:

https://github.com/emoncms/emoncms/blob/master/Modules/vis/visualisation...

from:

$.plot(graph,[{data: data, lines: { fill: true }}],

to

$.plot(graph,[{data: data, color: "#43b6ff", lines: { fill: true }}],

The tool tips are defined here: https://github.com/emoncms/emoncms/blob/master/Modules/vis/visualisation...

you could add "display:none" into the css style tag there that would hide them

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.