Hello Monks,

I am looking to make some live updating charts. Think of system monitoring type apps. I'd want, say, a line chart that updates once a second with the latest data, or something along those lines. I did some cursory searching around the Monastery and CPAN, but I didn't really find anything relevant. Any ideas?

As a fallback, I can probably end up creating something with GD, Imager, Chart or one of the other charting/graphics libraries plugged into perhaps SDL for the display. I'm not sure how much work this would be, but it sounds like enough that I'd rather see if there are any more fully-baked modules or solutions out there.

Thanks to any and all for ideas.

Update: sounds like rrdtool will be good for the chart generating part. But I still need to figure out the live updating portion of this. Maybe having a window that gets redrawn by SDL will be easy enough.

Another update: I think I may not have been clear enough in my post. When I wrote "live updating", I wasn't just talking about the data being recorded once a second. I meant the chart itself updating too.


In reply to Live or frequently updating charts by revdiablo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.