Thanks, David! I'll check it out!<div><br><div class="gmail_quote">On Thu, Aug 26, 2010 at 10:10 AM, David Young <span dir="ltr"><<a href="mailto:davidy@nationalcycle.com">davidy@nationalcycle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Sean,</div><div><br></div>I just finished a project creating bar and line charts. I tried and liked "flot" alot, but it couldn't exactly do what I wanted. So I abandoned it and ended up using jqplot. jqplot uses a hugely popular and powerful javascript library called jquery. With jqplot, you have perl create a JSON formatted string of your data, axis labels, title, etc, and give it to jqplot. jqplot then uses javascript to plot it by inserting the plot/chart/graph in an empty <div> on your webpage. Pretty slick. <div>
<br></div><div>I've attached a test HTML file that shows output generated from perl code. You would use something like this in your perl after creating $json & $opts:</div><div><div><br></div><div> # TrendChart</div>
<div> $JQPLOT = qq(</div><div> \$(document).ready(function () {</div><div><br></div><div> var graph = $json;</div><div> \$.jqplot('chart3', graph.data, $opts)</div><div> });</div>
<div> );</div><div><br></div><div>You'll need to download and install jquery and jqplot and adjust the <script> tag paths to make it work.</div><div><br></div><div>ydy</div><div><br clear="all">
<br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Aug 26, 2010 at 9:19 AM, Sean Blanton <span dir="ltr"><<a href="mailto:sean@blanton.com" target="_blank">sean@blanton.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I followed this month's exchange on Google Visualizations, but that's out for me since it requires internet connectivity. What other packages would people recommend? I assume a JavaScript based package is the modern way to go. What about Protovis?<div>
<br></div><div>I basically want to pull data from a database and chart it with Perl - time series, scatter plots, bar graphs - simple things on a local network. Chrome browser. It's possible I might want to do something more interesting later down the road.</div>
<div><br></div><div>Not being a web guy, what general approach would you recommend? I breathe Moose, DBI, XML and infrastructure every day, but not so much JavaScript, though I'm always up for new things!.</div><div>
<br>
</div><div>Thanks,</div><div>Sean<br><div><br>
</div></div>
<br></div></div>_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></blockquote></div><br></div>