mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +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: {
|
||||
type: 'time',
|
||||
time: {
|
||||
unit: 'day'
|
||||
unit: 'day',
|
||||
displayFormats: {
|
||||
day: 'MMM D, YYYY'
|
||||
}
|
||||
},
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Release date'
|
||||
},
|
||||
ticks: {
|
||||
maxRotation: 45,
|
||||
minRotation: 45
|
||||
}
|
||||
},
|
||||
y: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue