title: Show data value instead of percentage in Flot pie chart
body: <p>I'm using <a href="http://github.com/krzysu/flot.tooltip" rel="nofollow noreferrer">http://github.com/krzysu/flot.tooltip</a>. It shows percentages of data as below. But i need to show actual values instead of percentages. How can i do this ?</p>
  
  <p><img src="https://i.stack.imgur.com/POoBA.jpg" alt="chart"></p>
  
  <p><strong>Json data</strong></p>
  
  <blockquote>
    <p>[{"data":350,"label":"Transport"},{"data":250,"label":"Meals"},{"data":250,"label":"Kitchen"},{"data":7280.5,"label":"Construction"},{"data":3725,"label":"Fuel"},{"data":160,"label":"Stationary"}]</p>
  </blockquote>
  
  <p><strong>Script</strong></p>
  
  <pre><code>function make_chart() {
  
      $.ajax({
          cache : 'false',
          type : 'GET',
          dataType : 'json',
          url : "piechart",
          success : function(json) {
  
              var plotObj = $.plot($("#flot-pie-chart"), json, {
                  series: {
                      pie: {
                          show: true
                      }
                  },
                  grid: {
                      hoverable: true
                  },
                  tooltip: true,
                  tooltipOpts: {
                      content: "%p.0%, %s", // show percentages, rounding to 2 decimal places
                      shifts: {
                          x: 20,
                          y: 0
                      },
                      defaultTheme: false
                  }
              });             
  
          }
      });
  }
  </code></pre>