Menu

yaxis

Help
2011-06-27
2013-05-09
  • Chris Lowder

    Chris Lowder - 2011-06-27

    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.

     
  • Igor Sfiligoi

    Igor Sfiligoi - 2011-06-28

    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

     
  • Chris Lowder

    Chris Lowder - 2011-06-28

    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

     
  • Chris Lowder

    Chris Lowder - 2011-06-28

    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.

     
  • Igor Sfiligoi

    Igor Sfiligoi - 2011-06-28

    Not currently.

    You would need to change the rrdFlot class, sorry.

    Igor

     
  • Chris Lowder

    Chris Lowder - 2011-06-28

    Thanks for the response, I feared as much. Great tool by the way, keep it up

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.