mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
Add date with year to x-axis in Chart.js configuration
This commit is contained in:
parent
798c22dbb9
commit
a62a2201ad
1 changed files with 8 additions and 1 deletions
|
@ -31,11 +31,18 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
x: {
|
x: {
|
||||||
type: 'time',
|
type: 'time',
|
||||||
time: {
|
time: {
|
||||||
unit: 'day'
|
unit: 'day',
|
||||||
|
displayFormats: {
|
||||||
|
day: 'MMM D, YYYY'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
display: true,
|
display: true,
|
||||||
text: 'Release date'
|
text: 'Release date'
|
||||||
|
},
|
||||||
|
ticks: {
|
||||||
|
maxRotation: 45,
|
||||||
|
minRotation: 45
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue