diff --git a/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx b/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx index 30dce8305..221ff5556 100644 --- a/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx +++ b/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx @@ -37,8 +37,9 @@ export const HeatMap = ({ visualizations, layout, config }: any) => { isEmpty(zMetrics) || isEmpty(data[xaxisField.label]) || isEmpty(data[yaxisField.label]) || - isEmpty(data[`${zMetrics.aggregation}(${zMetrics.name})`]) - // indexOf(NUMERICAL_FIELDS, zMetrics.type) < 0 + isEmpty(data[`${zMetrics.aggregation}(${zMetrics.name})`]) || + dataConfig?.dimensions.length > 2 || + dataConfig?.metrics.length > 1 ) return ;