Chartjs-Setting Chart.js Pie-Graph Options

0👍

The version you are using is v2.0. The documentation for v2.0 is at http://nnnick.github.io/Chart.js/docs-v2/

  1. I don’t think the pie chart has a scale, but anyway you can set it on the scale for say, a line chart (you’re probably looking for ticks.fontSize)
  2. Pie border color needs to be set on the pie property of options

       ...
       options: 
       {
           elements: {
               arc: {
                   borderColor: 'red'
               }
           }
       }
    };
    

    See https://jsfiddle.net/euq7fvg1/

  3. responsive is true by default

Leave a comment