@@ -10,6 +10,7 @@ import { getChartThemeSelector } from './../../../../state/selectors/get_chart_t
1010import { computeChartElementSizesSelector } from './compute_chart_dimensions' ;
1111import { computeLegendSelector } from './compute_legend' ;
1212import { getHeatmapGeometries } from './geometries' ;
13+ import { getHeatmapSpecSelector } from './get_heatmap_spec' ;
1314import { getHighlightedAreaSelector , getHighlightedDataSelector } from './get_highlighted_area' ;
1415import { RGBATupleToString } from '../../../../common/color_library_wrappers' ;
1516import { LegendItem } from '../../../../common/legend' ;
@@ -29,8 +30,17 @@ export const getDebugStateSelector = createCustomCachedSelector(
2930 getHighlightedDataSelector ,
3031 getChartThemeSelector ,
3132 computeChartElementSizesSelector ,
33+ getHeatmapSpecSelector ,
3234 ] ,
33- ( geoms , legend , pickedArea , highlightedData , { heatmap } , { xAxisTickCadence } ) : DebugState => {
35+ (
36+ geoms ,
37+ legend ,
38+ pickedArea ,
39+ highlightedData ,
40+ { heatmap } ,
41+ { xAxisTickCadence } ,
42+ { xAxisTitle, yAxisTitle } ,
43+ ) : DebugState => {
3444 const xAxisValues = geoms . heatmapViewModel . xValues . filter ( ( _ , i ) => i % xAxisTickCadence === 0 ) ;
3545 return {
3646 // Common debug state
@@ -44,6 +54,7 @@ export const getDebugStateSelector = createCustomCachedSelector(
4454 values : xAxisValues . map ( ( { value } ) => value ) ,
4555 // vertical lines
4656 gridlines : geoms . heatmapViewModel . gridLines . x . map ( ( line ) => ( { x : line . x1 , y : line . y2 } ) ) ,
57+ ...( xAxisTitle ? { title : xAxisTitle } : { } ) ,
4758 } ,
4859 ] ,
4960 y : [
@@ -54,6 +65,7 @@ export const getDebugStateSelector = createCustomCachedSelector(
5465 values : geoms . heatmapViewModel . yValues . map ( ( { value } ) => value ) ,
5566 // horizontal lines
5667 gridlines : geoms . heatmapViewModel . gridLines . y . map ( ( line ) => ( { x : line . x2 , y : line . y1 } ) ) ,
68+ ...( yAxisTitle ? { title : yAxisTitle } : { } ) ,
5769 } ,
5870 ] ,
5971 } ,
0 commit comments