Menu

Get absciss / time in tooltip

Help
rem_d
2014-06-23
2014-06-23
  • rem_d

    rem_d - 2014-06-23

    Hi,

    I would like to print time in the toolbox when I put my mouse on a specific point. Is there any option to do that (like the "value" in toolbox) ?

    Perhaps it is in doc, but I did not see it, sorry.

    Thanks,

    Regards.

     
  • rem_d

    rem_d - 2014-06-23

    I have the day now, but not hour/mn/sec...

    I added to 'content' (line 489) of ./javascriptrrd-1.1.1/src/lib/rrdFlot.js:

    Time : %x

    I think I need to use somethink like var timeFormat = "%d/%m/%Y %H:%M:%S"; and timeformat option in tooltipOpts but I do not know how to do it easily...

    Regards,

    Any help would be usefull.

     
  • rem_d

    rem_d - 2014-06-23

    Solved after adding
    var timeFormat = "%d/%m/%y %H:%M:%S";
    and

    dateFormat: timeFormat,

    in tooltipOpts in javascriptrrd-1.1.1/flot/jquery.flot.tooltip.js

    Regards.

     
  • Igor Sfiligoi

    Igor Sfiligoi - 2014-06-23

    Hi rem_d.

    Uhm... not sure I understand what you did.

    Can you please clarify?
    Did you "hack" the libraries you are refering to,
    or were you able to pass the relevant info as a parameter?

    Thanks,
    Igor

     

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.