Graphs In Perl And flot.js

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Graphs In Perl And flot.js - Presentation Transcript

    1. Graphs for the Perl programmer?! by Phil Whelan Van.pm 9th July 2009
    2. Resources CPAN http://birmingham.pm.org/talks/ barbie/graphing/ Van.pm mailing list! External tools - Excel, Java...
    3. Perl Modules GD::Graph Chart::ThreeD::Pie Chart::Gnuplot SVGGraph::Pie Chart::Clicker
    4. Graph::GD Does the job Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    5. Graph::GD It ain’t pretty Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    6. Graph::GD Does 3D!! Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    7. Graph::GD It still ain’t pretty Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    8. Chart::ThreeD::Pie Still uses GD Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    9. Chart::Gnuplot gnuplot is powerful! Images blatantly stolen from http://www.gnuplot.info/
    10. Chart::Gnuplot Still fugly for simple graphs Images blatantly stolen from http://www.gnuplot.info/
    11. Work-arounds I’ve done the past Faking anti-aliasing Required Resized 500x700 500x700 Rendered 2000x2800 use Image::Resize; use GD::Graph::pie;
    12. Work-arounds I’ve looked at in the past Using Java Using Excel
    13. SVGGraph::Pie Vector graphics! Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    14. SVGGraph::Pie Requires SVG client browser “As of 2009, all major Windows browsers have committed to some level of SVG support, except for Internet Explorer even as of version 8” -wikipedia Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    15. Chart::Clicker http://www.onemogin.com/clicker/ Nice graphs in Perl! Export as PNG, SVG, PDF and PostScript Images blatantly stolen from http://www.onemogin.com/clicker/
    16. Chart::Clicker Example code Images blatantly stolen from http://birmingham.pm.org/talks/barbie/graphing/
    17. Chart::Clicker Conclusion By far the best graphing Perl package available Portal graph images Graphs are static once produced Greater control over rendering graphs Written in Perl - let’s hack!
    18. flot.js http://code.google.com/p/flot/ It’s not Perl?! - don’t hurt me, please Supports IE6, IE7, IE8 (development version), Firefox 2.x+, Safari 3.0+, Opera 9.5+ and Konqueror 4.x+
    19. flot.js So pretty. See the shadows?
    20. flot.js No JavaScript diploma required HTML DIV JSON Data Render
    21. flot.js Con - web-browser dependant Con - cannot automate exporting images as PNG, GIF easily
    22. flot.js Pro - quick to render Pro - interactive, relative to user Pro - does not look out-of-place in your Web 2.0 application Pro - low bandwidth and ser ver CPU- time for ser ving up graphing
    23. flot.js Demo Zooming http://people.iola.dk/olau/flot/examples/zooming.html MailChannels https://walla.wla.mailchannels.com/graph/walla/week
    24. flot.js Conclusion Ideal partner for Ajax to make graphs very interactive Not for exporting images (see Chart::Clicker) Yes, it even works on your iPhone!
    25. Conclusion Conclusion Use Chart::Clicker for rendering on the ser ver and producing static images Use Chart::Clicker to protect your raw data Use flot.js if you want to do some cool interactive graphing within the browser Use flot.js if you want your web designers to control how your graphs look
    SlideShare Zeitgeist 2009

    + Phil WhelanPhil Whelan Nominate

    custom

    231 views, 0 favs, 0 embeds more stats

    A look at what is available to create graphs for Pe more

    More info about this document

    CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

    Go to text version

    • Total Views 231
      • 231 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 3
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories