title: How to create 'backgroundColor' gradient in Angular Chart.js
body: <p>I am trying to implement the <code>chart.js</code> in Angular using <code>ng2-chart</code>. I need <code>backgroundColor</code> as a gradient in line chart. </p>
  
  <p>Is there any way to get chart in a gradient.</p>
  
  <pre><code>public lineChartColors: Color[] = [
      {
       borderColor: '#813d7e',
       backgroundColor: 'rgba(129, 61, 126, 0.25)',
       borderWidth: 2,
       pointBackgroundColor:'#fff',
  
      },
    ];
  </code></pre>
  
  <p>You can visit for live code on <a href="https://stackblitz.com/edit/ng2-charts-line-template" rel="nofollow noreferrer">Stackbiltz</a></p>