@using ApexCharts
@using System.Globalization
@if (Points is { Count: > 0 })
{
}
else
{
No data in this range.
}
@code {
[Parameter, EditorRequired]
public IReadOnlyList Points { get; set; } = [];
private readonly ApexChartOptions _options = new()
{
Theme = new Theme { Mode = Mode.Dark },
DataLabels = new DataLabels { Enabled = false },
};
private static object Label(TrendPoint p) => p.Period.ToString("MMM yy", CultureInfo.InvariantCulture);
}