Doughnut Chart in chart.js

by Mark

HTML

<script src="http://www.chartjs.org/assets/Chart.js"></script>
<canvas id="myChart" width="400" height="400"></canvas>

JavaScript

var data = [{
        value: 30,
        color: "#F7464A"
    }, {
        value: 50,
        color: "#1CFF65"
    }, {
        value: 100,
        color: "#D4CCC5"
    }, {
        value: 40,
        color: "#949FB1"
    }, {
        value: 120,
        color: "#4D5360"
    }

    ]

    var options = {
        animation: true
    };

    //Get the context of the canvas element we want to select
    var c = $('#myChart');
    var ct = c.get(0).getContext('2d');
    var ctx = document.getElementById("myChart").getContext("3d");
    /*************************************************************************/
    myNewChart = new Chart(ct).Doughnut(data, options);