remove d
This commit is contained in:
parent
45089c1602
commit
a08cb0dd70
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue