refactor(energy): drop anomaly coloring on hydrogen daily bars
All bars now use the cyan→blue gradient consistently, matching the electric daily chart. Anomaly information stays available via the table row tinting and the trend pills below. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -129,13 +129,9 @@ export default function HydrogenDaily() {
|
||||
cursor={{ fill: 'rgba(34, 211, 238, 0.06)' }}
|
||||
/>
|
||||
<Bar dataKey="totalKg" radius={[4, 4, 0, 0]}>
|
||||
{trendData.map((r, i) => {
|
||||
const isAbnormal = Math.abs(r.chainPct) >= 0.3;
|
||||
const fill = isAbnormal
|
||||
? r.chainPct > 0 ? '#10b981' : '#ef4444'
|
||||
: 'url(#hydrogenBarGrad)';
|
||||
return <Cell key={i} fill={fill} />;
|
||||
})}
|
||||
{trendData.map((_, i) => (
|
||||
<Cell key={i} fill="url(#hydrogenBarGrad)" />
|
||||
))}
|
||||
</Bar>
|
||||
<defs>
|
||||
<linearGradient id="hydrogenBarGrad" x1="0" x2="0" y1="0" y2="1">
|
||||
|
||||
Reference in New Issue
Block a user