title: Include Percentage In Legend
body: <p>How would I add the segments percentage to the charts label?</p>
  
  <p><strong>Example</strong>
  (Percentage values dont reflect the actual chart this is just an example.)</p>
  
  <p><a href="https://i.stack.imgur.com/BtKHm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BtKHm.png" alt="chart"></a></p>
  
  <p>Here's my current template.</p>
  
  <pre><code>&lt;ul class=\"&lt;%=name.toLowerCase()%&gt;-legend\"&gt;&lt;% for (var i=0; i&lt;segments.length; i++){%&gt;&lt;li&gt;&lt;span style=\"background-color:&lt;%=segments[i].fillColor%&gt;\"&gt;&lt;/span&gt;&lt;%if(segments[i].label){%&gt;&lt;%=segments[i].label%&gt;&lt;%}%&gt;&lt;/li&gt;&lt;%}%&gt;&lt;/ul&gt;
  </code></pre>