Hello
I'm using Chart.js in a project, however I need to hide the caption that appears above the chart.
Does anyone who has worked with this chart know how to hide this part?
Follow the link of the chart I'm using:
Here is the code I'm using:
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ["Muito Bom", "Bom", "Regular", "Ruim", "N/A"],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2],
backgroundColor: [
'rgba(151,187,205,0.5)',
'rgba(151,187,205,0.5)',
'rgba(151,187,205,0.5)',
'rgba(151,187,205,0.5)',
'rgba(151,187,205,0.5)',
'rgba(151,187,205,0.5)'
]
}]
},
});
I need to hide the label: label: '# of Votes'
, but if I leave it blank or if it is removed it will be undefined.