$(function() { "use strict"; // chart 1 var ctx = document.getElementById("udcchart").getContext('2d'); var myChart = new Chart(ctx, { type: 'doughnut', data: { labels: ["CLM", "UDC"], datasets: [{ backgroundColor: [ "#ffffff", "rgba(255, 255, 255, 0.70)", "rgba(255, 255, 255, 0.50)", "rgba(255, 255, 255, 0.20)" ], data: [5, 2], borderWidth: [0, 0] }] }, options: { maintainAspectRatio: false, legend: { position :"bottom", display: false, labels: { fontColor: '#ddd', boxWidth:15 } } , tooltips: { displayColors:false } } }); });