import { getYDatumValueFn } from '../../chart_types/xy_chart/rendering/utils' ; import { DataSeriesDatum } from '../../chart_types/xy_chart/utils/series' ; internal export const getFilledNullData = ( data ) : ( number | undefined ) [ ] => data . filter ( ( { filled } ) => filled ?. y1 !== undefined ) . map ( ( { filled } ) => filled ?. y1 ) ; internal export const getFilledNonNullData = ( data ) : ( number | undefined ) [ ] => data . filter ( ( { y1 , filled } ) => y1 !== null && filled ?. y1 === undefined ) . map ( ( { filled } ) => filled ?. y1 ) ; internal export const getXValueData = ( data ) : ( number | string ) [ ] => data . map ( ( { x } ) => x ) ; internal export const getYResolvedData = ( data ) : ( number | null ) [ ] => { const datumAccessor = getYDatumValueFn ( ) ; return data . map ( ( d ) => { return datumAccessor ( d ) ; } ) ; } ;