ChartJS: chart not show all data
问题 For some reason, this chart not show the last two data from the array. var data = { labels: ["Brasil", "Argentina", "Chile", "Paraguai", "Peru", "Bolívia", "México"], datasets: [{ data: [ 9.19, 7.77, 6.80, 6.23, 6.00, 4.00, 4.00 ], backgroundColor: backgroundColor }], }; http://codepen.io/marcelo2605/pen/PWWqJm?editors=0010 Anyone known why is this happens? 回答1: you need to set Y-Axis to start with 0, by default it start with the minimum value present in the data set which is 4 in your case.