Wasser: show cold water in blue, warm water in orange
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1697517200
commit
890d79f85f
1 changed files with 3 additions and 2 deletions
|
|
@ -65,13 +65,14 @@ public partial class Water : ComponentBase
|
||||||
var periods = filter.Apply(source);
|
var periods = filter.Apply(source);
|
||||||
isSplit = periods.Any(p => p.IsSplit);
|
isSplit = periods.Any(p => p.IsSplit);
|
||||||
var labels = periods.Select(p => p.Label).ToList();
|
var labels = periods.Select(p => p.Label).ToList();
|
||||||
|
// Cold water blue, warm water orange.
|
||||||
barData = new
|
barData = new
|
||||||
{
|
{
|
||||||
labels,
|
labels,
|
||||||
series = new object[]
|
series = new object[]
|
||||||
{
|
{
|
||||||
new { name = "Warmwasser", color = ChartTheme.ColorAt(0), values = periods.Select(p => p.Bill?.WarmWaterM3).ToList(), clickable = false },
|
new { name = "Warmwasser", color = ChartTheme.ColorAt(1), values = periods.Select(p => p.Bill?.WarmWaterM3).ToList(), clickable = false },
|
||||||
new { name = "Kaltwasser", color = ChartTheme.ColorAt(1), values = periods.Select(p => p.Bill?.ColdWaterM3).ToList(), clickable = false }
|
new { name = "Kaltwasser", color = ChartTheme.ColorAt(0), values = periods.Select(p => p.Bill?.ColdWaterM3).ToList(), clickable = false }
|
||||||
},
|
},
|
||||||
unit = "m³"
|
unit = "m³"
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue