import { OrderedChart } from './point_series' ; export function orderedDateAxis ( chart ) { const x = chart . aspects . x [ 0 ] ; const bounds = 'bounds' in x . params ? x . params . bounds : undefined ; chart . ordered . date = true ; if ( bounds ) { chart . ordered . min = typeof bounds . min === 'string' ? Date . parse ( bounds . min ) : bounds . min ; chart . ordered . max = typeof bounds . max === 'string' ? Date . parse ( bounds . max ) : bounds . max ; } else { chart . ordered . endzones = false ; } }