From c72596850d37fa6199fb9de3213f42cf043c4fb4 Mon Sep 17 00:00:00 2001 From: wayangalihpratama Date: Tue, 12 Mar 2024 08:15:54 +0800 Subject: [PATCH] [#300] Show income target on sensitivity analisys heatmap chart --- frontend/src/pages/cases/visualizations/ChartBinningHeatmap.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/pages/cases/visualizations/ChartBinningHeatmap.js b/frontend/src/pages/cases/visualizations/ChartBinningHeatmap.js index 4d7fb0d0..6c201dcc 100644 --- a/frontend/src/pages/cases/visualizations/ChartBinningHeatmap.js +++ b/frontend/src/pages/cases/visualizations/ChartBinningHeatmap.js @@ -83,6 +83,9 @@ const getOptions = ({ const x = params.value[0]; const y = params.value[1]; let text = `${value}
`; + text += `Income Target: ${ + target ? target?.toFixed() : 0 + }
`; text += `${xAxis.name}: ${x}
`; text += `${yAxis.name}: ${y}
`; return text;