updated lib/date iintervals to use the full year incl. centruy,
This commit is contained in:
parent
97a819a44d
commit
e21a6022e7
|
@ -422,7 +422,7 @@ export function getDateFormatsForInterval( interval, ticks = 0 ) {
|
||||||
let pointLabelFormat = 'F j, Y';
|
let pointLabelFormat = 'F j, Y';
|
||||||
let tooltipFormat = '%B %d %Y';
|
let tooltipFormat = '%B %d %Y';
|
||||||
let xFormat = '%Y-%m-%d';
|
let xFormat = '%Y-%m-%d';
|
||||||
let x2Format = '%b %y';
|
let x2Format = '%b %Y';
|
||||||
let tableFormat = 'm/d/Y';
|
let tableFormat = 'm/d/Y';
|
||||||
|
|
||||||
switch ( interval ) {
|
switch ( interval ) {
|
||||||
|
@ -448,7 +448,7 @@ export function getDateFormatsForInterval( interval, ticks = 0 ) {
|
||||||
case 'month':
|
case 'month':
|
||||||
pointLabelFormat = 'F Y';
|
pointLabelFormat = 'F Y';
|
||||||
tooltipFormat = '%B %Y';
|
tooltipFormat = '%B %Y';
|
||||||
xFormat = '%b %y';
|
xFormat = '%b %Y';
|
||||||
x2Format = '';
|
x2Format = '';
|
||||||
break;
|
break;
|
||||||
case 'year':
|
case 'year':
|
||||||
|
|
Loading…
Reference in New Issue