title: How can i change text of legend in c3 pie chart
body: <p>How can I change the Text of legend of pie chart. I am using c3 charts in my php page. I have already read the documentation of c3 charts but no luck.</p>
  
  <p>Currently i am using this code it show legend for <code>true</code> but I not able to change the text I have tried this.</p>
  
  <pre><code>var chart = c3.generate({
          bindto: '#container',
          padding: {
                    top: 10,
                    right: 0,
                    bottom: 10,
                    left: 0,
              },
          data: {
              columns: [&lt;?php echo $pieChartDataString; ?&gt;],
              type : 'pie',
              labels: true
          },
          legend: {
                  show: true,
                  position: 'upper-center'
                  format: {
                          title: function () { return "Legend title"; },
                          name : function () { return "Legend name"; },
                          value: function () { return "Legend value";}
                          }
                  }
  
     //But these legend values or not showing 
  
      });
  </code></pre>
  
  <p>It's not showing my legend values its always shows only columns as legend.</p>
  
  <p>Is there any way that I can change the legend values.</p>