Chart Js Doughnut chart giving error
<p>Before I was using chart.js version 1.0.</p>

<p>Now we have updated the js with vesion 2.4.0
But getting following error
<a href="https://i.stack.imgur.com/37Z2r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/37Z2r.png" alt="enter image description here"></a></p>

<pre><code> var data = [
{
    value: 20,
    color: "cornflowerblue",
    highlight: "lightskyblue",
    label: "JavaScript"
},
{
    value: 50,
    color: "lightgreen",
    highlight: "yellowgreen",
    label: "HTML"
},
{
    value: 40,
    color: "orange",
    highlight: "darkorange",
    label: "CSS"
}
];
var options = { responsive: true };
var element = component.find('chart').getElement();
var ctx = element.getContext('2d');
var chart = new Chart(ctx).Doughnut(data);
</code></pre>

<p>======================</p>

<pre><code>  &lt;div onclick="{!c.getChart}"&gt; test
        &lt;canvas aura:id="chart" height="250" width="250"&gt;&lt;/canvas&gt;
    &lt;/div&gt;
</code></pre>