{"id":1604,"date":"2012-06-26T21:30:08","date_gmt":"2012-06-27T04:30:08","guid":{"rendered":"http:\/\/juixe.com\/techknow\/?p=1604"},"modified":"2012-06-26T22:05:57","modified_gmt":"2012-06-27T05:05:57","slug":"javascript-charting-library","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2012\/06\/26\/javascript-charting-library\/","title":{"rendered":"Pure JavaScript Charting Library"},"content":{"rendered":"<p>Most business applications display some amount of data in charts and graphs.  If a picture is worth a thousand words, then a clean visual representation of business data is worth a lot more.  Business charts can condense a lot of data points into a easy to understand graph.<\/p>\n<p>Recently, I was tasked with updating the graph solution of a financial application with a HTML5 friendly charting tool or library.  I looked at about half a dozen JavaScript chart libraries and eventually narrowed the selection down to two based on features and functionality: <a href=\"https:\/\/developers.google.com\/chart\/\">Google Charts<\/a> and <a href=\"http:\/\/www.jqplot.com\/\">jQuery chart plugin jqPlot<\/a>.  Both Google Charts and jqPlot support a large number of chart types, from the basic bar and pie to more advance features such as multiple y-axis and and zoom.  Both libraries support HTML5 graphics, the legacy chart solution I was to replace generated a pixelated image.  Google Charts and jqPlot both draw the graph into div tag instead by using HTML5 graphics and don&#8217;t anti-aliasing issues.<\/p>\n<p>For this particular project, we picked jqPlot over Google Charts for the following reasons.  Google Charts is not open sourced and it uses a loading mechanism that requires you to be online to load the JavaScript source files from Google&#8217;s servers.  This is great if you are always online, but the project owners wanted a <strong>HTML5 charting<\/strong> solution that works offline.  jqPlot is a freely available open source JavaScript library which can be hosted alongside with the other application resources.  jqPlot, like Google Charts, has a large number of chart types it supports including line, area, bubble, bar stacked, pyramid, pies, donuts, gauges, and much more.<\/p>\n<div id=\"attachment_1606\" style=\"width: 545px\" class=\"wp-caption aligncenter\"><span class=\"frame-outer  size-large wp-image-1606\"><span><span><span><span><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1606\" data-attachment-id=\"1606\" data-permalink=\"http:\/\/juixe.com\/techknow\/index.php\/2012\/06\/26\/javascript-charting-library\/jqplot_javascript_plotting\/\" data-orig-file=\"http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting.png\" data-orig-size=\"821,521\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"jqPlot_JavaScript_Plotting\" data-image-description=\"&lt;p&gt;jqPlot JavaScript Chart Library&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;jqPlot JavaScript Chart Library&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting-300x190.png\" data-large-file=\"http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting-535x339.png\" src=\"http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting-535x339.png\" alt=\"jqPlot JavaScript Chart Library\" title=\"jqPlot_JavaScript_Plotting\" width=\"415\" height=\"263\" class=\"size-large wp-image-1606\" srcset=\"http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting-535x339.png 535w, http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting-300x190.png 300w, http:\/\/juixe.com\/techknow\/wp-content\/uploads\/2012\/06\/jqPlot_JavaScript_Plotting.png 821w\" sizes=\"(max-width: 535px) 100vw, 535px\" \/><\/span><\/span><\/span><\/span><\/span><p id=\"caption-attachment-1606\" class=\"wp-caption-text\">jqPlot JavaScript Chart Library<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Most business applications display some amount of data in charts and graphs. If a picture is worth a thousand words, then a clean visual representation of business data is worth a lot more. Business charts can condense a lot of data points into a easy to understand graph. Recently, I was tasked with updating the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[13,16,19,3],"tags":[725,721,724,722,333,723,373,720],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-pS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/1604"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=1604"}],"version-history":[{"count":6,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/1604\/revisions"}],"predecessor-version":[{"id":1608,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/1604\/revisions\/1608"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=1604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=1604"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=1604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}