This commit is contained in:
Robert Elliott 2018-09-14 11:57:50 +02:00
parent 45089c1602
commit a08cb0dd70
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ export const drawAxis = ( node, params ) => {
.tickValues( params.uniqueDates.map( d => ( params.type === 'line' ? new Date( d ) : d ) ) )
.tickFormat( ( d, i ) => {
const monthDate = d instanceof Date ? d : new Date( d );
return monthDate.getDate() === 1 || i === 0 ? ( d = params.x2Format( monthDate ) ) : '';
return monthDate.getDate() === 1 || i === 0 ? params.x2Format( monthDate ) : '';
} )
)
.call( g => g.select( '.domain' ).remove() );