one more type -> chartType

This commit is contained in:
Ron Rennick 2019-02-14 16:03:54 -04:00
parent e7c55d7ca5
commit 86c89e741a
1 changed files with 1 additions and 1 deletions

View File

@ -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() );
}