one more type -> chartType
This commit is contained in:
parent
e7c55d7ca5
commit
86c89e741a
|
@ -198,7 +198,7 @@ const removeDuplicateDates = ( d, i, ticks, formatter ) => {
|
|||
const drawXAxis = ( node, params, scales, formats ) => {
|
||||
const height = scales.yScale.range()[ 0 ];
|
||||
let ticks = getXTicks( params.uniqueDates, scales.xScale.range()[ 1 ], params.mode, params.interval );
|
||||
if ( params.type === 'line' ) {
|
||||
if ( params.chartType === 'line' ) {
|
||||
ticks = ticks.map( d => moment( d ).toDate() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue