0
如何在Chart.js v2中向Y軸添加°C?這些值由Chart.js庫自動生成。
這是我的代碼:
var chartInstance = new Chart(ctx, {
type: 'bar',
data: data,
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:false
},
scaleLabel: {
display: true,
labelString: 'Temperature'
}
}]
},
title: {
display: true,
text: 'Weather Graph'
}
}
這正是我正在尋找。謝謝 – Roman