import { ANALYSIS_CONFIG_TYPE } from './analytics' ; import { AnalyticsJobType } from '../pages/analytics_management/hooks/use_create_analytics_form/state' ; import { LEGEND_TYPES } from '../../components/vega_chart/common' ; export const getScatterplotMatrixLegendType = ( jobType ) => { switch ( jobType ) { case ANALYSIS_CONFIG_TYPE . CLASSIFICATION : return LEGEND_TYPES . NOMINAL ; case ANALYSIS_CONFIG_TYPE . REGRESSION : return LEGEND_TYPES . QUANTITATIVE ; default : return undefined ; } } ;