моя диаграмма работает правильно, но в качестве первой стартовой точки 1-й столбец, не показанный здесь, представляет собой код:
$(function () {
var $populationChart = $("#population-chart");
var res = ['20','20','30']
$.ajax({
url: $populationChart.data("url"),
success: function (data) {
var ctx = $populationChart[0].getContext("2d");
new Chart(ctx, {
type: 'bar',
data: {
labels: data.label,
datasets: [{
label: 'Price',
backgroundColor: 'blue',
data: res,
}]
},
options: {
responsive: true,
legend: {
position: 'top',
},
title: {
display: true,
text: 'Rating Analysis'
}
}
});
}
});
});
Снимок экрана: ![enter image description here](https://i.stack.imgur.com/13y9c.png)
Есть ли способ показать минимальное значение первого бара правильно?