Fix UI issues

This commit is contained in:
Urtzi Alfaro
2025-12-29 19:33:35 +01:00
parent c1dedfa44f
commit 02f0c91a15
9 changed files with 94 additions and 26 deletions

View File

@@ -377,26 +377,31 @@ const DemandChart: React.FC<DemandChartProps> = ({
iconType="line"
/>
{/* Confidence interval area */}
{/* Confidence interval area - rendered as a range between lower and upper bounds */}
{showConfidenceInterval && (
<Area
type="monotone"
dataKey="confidenceUpper"
stackId={1}
stroke="none"
stroke="#10b981"
strokeWidth={1}
strokeOpacity={0.3}
fill="url(#confidenceGradient)"
fillOpacity={0.4}
fillOpacity={0.3}
name="Límite Superior"
legendType="none"
/>
)}
{showConfidenceInterval && (
<Area
type="monotone"
dataKey="confidenceLower"
stackId={1}
stroke="none"
fill="#ffffff"
stroke="#10b981"
strokeWidth={1}
strokeOpacity={0.3}
fill="var(--bg-primary, #1a1a2e)"
fillOpacity={1}
name="Límite Inferior"
legendType="none"
/>
)}