From 86c89e741a32f03fb127ee2ed97af4a4a95401d9 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Thu, 14 Feb 2019 16:03:54 -0400 Subject: [PATCH] one more type -> chartType --- .../packages/components/src/chart/d3chart/utils/axis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/packages/components/src/chart/d3chart/utils/axis.js b/plugins/woocommerce-admin/packages/components/src/chart/d3chart/utils/axis.js index 6d684b4c40c..5cb18b4ece1 100644 --- a/plugins/woocommerce-admin/packages/components/src/chart/d3chart/utils/axis.js +++ b/plugins/woocommerce-admin/packages/components/src/chart/d3chart/utils/axis.js @@ -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() ); }