title: How to assign different background colors to chart.js pie chart data set?
body: <p>I am able to create a chart.js pie chart below:</p>
  
  <pre><code>this.httpClient.get(this.url).subscribe((res: Stock[]) =&gt; {
        res.forEach(holding =&gt; {
          this.company.push(holding.company);
          this.price.push(holding.price);
        });
        this.chart = new Chart('canvas', {
          type: 'pie',
          data: {
            labels: this.company,
            datasets: [
              {
                data: this.price,
                borderColor: '#3cba9f',
                backgroundColor: 'rgba(35, 206, 107, 0.5)',
                fill: false
              } 
            ]
          },
          options: {
            legend: {
              display: true
            }     
          }
        });
      });
  </code></pre>
  
  <p>At the moment, each segment of the pie chart has the same <code>backgroundColor</code>, as I have assigned it above.</p>
  
  <p>My issue is that I want each segment of the pie to have a different background color. Can someone please tell me how I can make this change with the above code?</p>