Skip to content

Commit f5cf39c

Browse files
committed
pv graph style
1 parent 51741c6 commit f5cf39c

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/Client/Pages/PVGenForDay.razor

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<span class="oi oi-arrow-thick-right"></span>
2323
</button>
2424
</h3>
25-
<Line Data="day.WattPeaks" Config="config" />
25+
<Area Data="day.WattPeaks" Config="aConf" />
2626
<h4 class="bg-light text-center p-3">
2727
Total Generation: <b>@day.TotalKiloWattHours</b> kWh
2828
</h4>
@@ -32,14 +32,22 @@
3232
@code{
3333
private PVDay? day;
3434

35-
private LineConfig config = new ()
35+
private AreaConfig aConf = new()
3636
{
37-
Title = new(),
3837
Padding = "auto",
39-
ForceFit = true,
38+
AutoFit = true,
4039
XField = "Time",
4140
YField = "Watts",
42-
Smooth = false
41+
Smooth = false,
42+
Line = new()
43+
{
44+
Size = 1,
45+
Color = "#5598d7"
46+
},
47+
AreaStyle = new()
48+
{
49+
Fill = "l(270) 0:#ffffff 0.5:#7ec2f3 1:#1890ff",
50+
}
4351
};
4452

4553
protected override async Task OnInitializedAsync()

src/changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
## changelog
22
- disable buttons in settings page until data is loaded in (applies only to trouble mode)
3-
- pre-allocate pv graph slots
3+
- pre-allocate pv graph slots
4+
- change pv graph style

0 commit comments

Comments
 (0)