javascript - How can I remove the button label my dataset without affecting my chart -
i want eliminate label of operation, when do, affects function.
var ctx = document.getelementbyid("countrychart");<br> var mychart = new chart(ctx, {<br><br> type: 'bar',<br> data: {<br> labels: ["méxico", "japon", "usa", "china", "pakistan"],<br><br> datasets: [{<br> label: '# of votes',**--this label want eliminate--**<br> data: [12, 19, 3, 5, 2, 3],<br> backgroundcolor: [<br><br>
add following option: should hide without affecting anything.
options: { legend: { display: false }}
Comments
Post a Comment