Is there anything built in that would allow you to switch the yaxis for a given ds? I've got radio buttons placed next to the check boxes but haven't found a convenient method of dealing with the yaxis part without resending the ds_graph_opts and changing them each time to reflect the selection.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you looked at this example:
var ds_graph_opts={'Idle':{ label: 'IdleJobs', color: "#00c0c0",
lines: { show: true, fill: true} },
'Running':{color: "#000000",yaxis:2}};
Idle will be on one axis and Running will be on the other.
Igor
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To clarify, be able to switch a ds back and forth between the two axis by tying a function to a button or something of that nature. So I could switch Idle over to yaxis 2, and see it on that axis with running, but if I added a third data set I'd be able to switch it back to yaxis 1 if desired.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there anything built in that would allow you to switch the yaxis for a given ds? I've got radio buttons placed next to the check boxes but haven't found a convenient method of dealing with the yaxis part without resending the ds_graph_opts and changing them each time to reflect the selection.
Not sure I understand your question.
Have you looked at this example:
var ds_graph_opts={'Idle':{ label: 'IdleJobs', color: "#00c0c0",
lines: { show: true, fill: true} },
'Running':{color: "#000000",yaxis:2}};
Idle will be on one axis and Running will be on the other.
Igor
I mean to be able to dynamically change the axis while the script is running, so if I want to move idle over to yaxis:2 as well then I'd be able to
To clarify, be able to switch a ds back and forth between the two axis by tying a function to a button or something of that nature. So I could switch Idle over to yaxis 2, and see it on that axis with running, but if I added a third data set I'd be able to switch it back to yaxis 1 if desired.
Not currently.
You would need to change the rrdFlot class, sorry.
Igor
Thanks for the response, I feared as much. Great tool by the way, keep it up