title: How set color family to pie chart in chart.js
body: <p>I am trying to draw a pie chart using Chart.js. My values are coming from a database hence I don't know how many values there are going to be in the database. Here I want to set set a unique color to each value. Below is my example.</p>
  
  <pre><code>var pieData = [
      {
          value: 20,
          color:"#878BB6"
      },
      {
          value : 40,
          color : "#4ACAB4"
      },
      {
          value : 10,
          color : "#FF8153"
      },
      {
          value : 30,
          color : "#FFEA88"
      }
  ];
  
  var pieOptions = {
      segmentShowStroke : false,
      animateScale : true
  }
  
  var countries= document.getElementById("countries").getContext("2d");
          new Chart(countries).Pie(pieData, pieOptions);
  </code></pre>
  
  <p>Currently in above example I have set hard coded values but in my example data (Json) is coming from DB. </p>