Skip to content

Commit

Permalink
pv graph style
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Apr 16, 2023
1 parent 51741c6 commit f5cf39c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
18 changes: 13 additions & 5 deletions src/Client/Pages/PVGenForDay.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<span class="oi oi-arrow-thick-right"></span>
</button>
</h3>
<Line Data="day.WattPeaks" Config="config" />
<Area Data="day.WattPeaks" Config="aConf" />
<h4 class="bg-light text-center p-3">
Total Generation: <b>@day.TotalKiloWattHours</b> kWh
</h4>
Expand All @@ -32,14 +32,22 @@
@code{
private PVDay? day;

private LineConfig config = new ()
private AreaConfig aConf = new()
{
Title = new(),
Padding = "auto",
ForceFit = true,
AutoFit = true,
XField = "Time",
YField = "Watts",
Smooth = false
Smooth = false,
Line = new()
{
Size = 1,
Color = "#5598d7"
},
AreaStyle = new()
{
Fill = "l(270) 0:#ffffff 0.5:#7ec2f3 1:#1890ff",
}
};

protected override async Task OnInitializedAsync()
Expand Down
3 changes: 2 additions & 1 deletion src/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## changelog
- disable buttons in settings page until data is loaded in (applies only to trouble mode)
- pre-allocate pv graph slots
- pre-allocate pv graph slots
- change pv graph style

0 comments on commit f5cf39c

Please sign in to comment.