import { LegendItemExtraValues } from '../../common/legend' ; import { SeriesKey } from '../../common/series_id' ; import { GlobalChartState } from '../chart_state' ; const EMPTY_ITEM_LIST = new Map < SeriesKey , LegendItemExtraValues > ( ) ; internal export const getLegendExtraValuesSelector = ( state ) : Map < SeriesKey , LegendItemExtraValues > => { if ( state . internalChartState ) { return state . internalChartState . getLegendExtraValues ( state ) ; } return EMPTY_ITEM_LIST ; } ;