import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { isAllSeriesDeselected } from '../utils/common' ; import { computeLegendSelector } from './compute_legend' ; internal export const isChartEmptySelector = createCustomCachedSelector ( [ computeLegendSelector ] , ( legendItems ) : boolean => isAllSeriesDeselected ( legendItems ) ) ;