import { OrderedChartDataPoint , ChartDataPoint } from '../../types' ; const orderData = ( data ) : OrderedChartDataPoint [ ] => data . map ( ( point , index ) => ( { ... point , order : index } ) ) ; export default orderData ;