var colors = ['#208DF8', '#E9485E', '#FF9900', '#2DCB67'], labels = ['Paid', 'Overdue', 'Partial', 'Draft'], data = [2, 1, 2, 3], bgColor = colors, dataChart = { labels: labels, datasets: [{ data: data, backgroundColor: bgColor }] }, config = { type: 'doughnut', data: dataChart, options: { maintainAspectRatio: true, cutoutPercentage: 45, legend: { display: false }, // generate custom labels legendCallback: function(chart) { var text = []; text.push('