Compare commits
No commits in common. "4c0f0da515b696bfdf082042a546a024d050fdf2" and "3799b9fac86d96029b2592f036abeaa17102a74c" have entirely different histories.
4c0f0da515
...
3799b9fac8
@ -153,17 +153,6 @@ const WeatherChart = {
|
|||||||
responsive: true,
|
responsive: true,
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
interaction: { mode: 'index', intersect: false },
|
interaction: { mode: 'index', intersect: false },
|
||||||
layout: { padding: { top: 12, right: 16, bottom: 12, left: 16 } },
|
|
||||||
plugins: {
|
|
||||||
legend: {
|
|
||||||
display: true,
|
|
||||||
position: 'top',
|
|
||||||
align: 'center',
|
|
||||||
labels: {
|
|
||||||
padding: 16
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
scales: {
|
scales: {
|
||||||
'y-temperature': { type: 'linear', display: true, position: 'left', title: { display: true, text: '温度 (°C)' } },
|
'y-temperature': { type: 'linear', display: true, position: 'left', title: { display: true, text: '温度 (°C)' } },
|
||||||
'y-humidity': { type: 'linear', display: true, position: 'right', title: { display: true, text: '湿度 (%)' }, grid: { drawOnChartArea: false }, min: 0, max: 100 },
|
'y-humidity': { type: 'linear', display: true, position: 'right', title: { display: true, text: '湿度 (%)' }, grid: { drawOnChartArea: false }, min: 0, max: 100 },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user