@code { [Parameter] public ReplayDataSeries? DataSeries { get; set; } private List PriceData => DataSeries?.GetSeries("NordPool", "Price").ToList() ?? []; private ApexChartOptions ChartOptions => new() { Chart = new Chart { Background = "transparent", ForeColor = "#adb5bd" }, Theme = new Theme { Mode = Mode.Dark }, Stroke = new Stroke { Curve = Curve.Smooth, Width = 2 }, Xaxis = new XAxis { Type = XAxisType.Datetime }, Yaxis = [new YAxis { Title = new AxisTitle { Text = "ct/kWh" }, DecimalsInFloat = 2 }], Tooltip = new Tooltip { X = new TooltipX { Format = "HH:mm" } }, Grid = new Grid { BorderColor = "#343a40" } }; } @if (PriceData.Count > 0) { } else {
No price data available
}