I want to eliminate a label of my operation, but when I do, it affects all my 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 i want to eliminate--**<br>
data: [12, 19, 3, 5, 2, 3],<br>
backgroundColor: [<br><br>
添加以下选项:这应该隐藏它而不影响任何内容。
options: { legend: { display: false }}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.