Sunday, December 1, 2013

Javascript Pie Charts using jQPlot

This article provides a sample implementation to draw charts using JavaScript solutions. jqPlot is a versatile and expandable jQuery plotting plugin and supports pure client side Javascript charts. jqPlot support numerous chart style and options. It is free and open sourced under GPL/ MIT license.
Pie chart demo

HTML implementation

<!DOCTYPE html>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <link href="" type="text/css" rel="stylesheet"/>
var data = [
    ['Android', 75],['iOS', 15],['Windows Phone', 2], 
    ['BlackBerry', 4],['Others', 4]
  var plot1 = jQuery.jqplot ('mobile', [data], 
      seriesDefaults: {
        // Make this a pie chart.
        renderer: jQuery.jqplot.PieRenderer, 
        rendererOptions: {
          // Put data labels on the pie slices.
          // By default, labels show the percentage of the slice.
          showDataLabels: true
      legend: { show:true, location: 'e' }
    <h2>Top Mobile OS - 2013</h2>
    <div style="width:500px; height:300px;" id="mobile"/>

1 comment :

  1. It is unlikely that any of that should be to say that enjoy is without a doubt all sorts of things as few as a fantastic timepiece, seeing that actually the country temporary detractors might accept. It consists of just simply become a tiny bit much, and even we have seen web sites cry meant for an item a little less over the top. Lumber is often prolonged level of popularity involving much larger sports entertainment running watches on the buyer economy, there may be a forthcoming and also popular transformation at the around horizon. Produces really are slowly but surely dimensions downwards its things inside planning for ones subsequent enormous item - which in this instance, will probably be smaller wrist watches (moderately presenting they are going to under no circumstances possibly be small and you will definitely really not look at activity designer watches less than 39mm). These types of less significant wrist watches can be a excellent launch pertaining to design, because they may obviously make a fully cutting edge bowl involving buyers who have been struggling to accomplish the larger variations with regard to wearability factors, whereas even approaching maximum radius for the die-hard enthusiast whoever tends to be happen to be maturation at night enormous along with blingy with also been moping and crying outside for an item reduced as well as sustainably wearable. There is always minimal suspect until this set will certainly build up vastly following initial unveiling down the road the following planting season, however the earliest products available for purchase is going to be people pictured the following. For many who enjoy the style and even generate on the gallery however, currently have remained at a distance with regard to purposes regarding snapshot or possibly measurement, the time has come that will reassess.


Contact Form


Email *

Message *

Back to Top