demo/Pages/Dashboard/Monitor/Components/Charts/Map/MiniArea.razor
2024-06-21 16:48:24 +08:00

29 lines
611 B
Plaintext

@using antblazorpro.Models
@namespace antblazorpro.Pages.Dashboard.Monitor
<Area @ref="_chart" Data="Data" Config="_chartConfig" />
@code
{
private IChartComponent _chart;
private readonly AreaConfig _chartConfig = new AreaConfig
{
XField = "x",
YField = "y",
Height = 84,
Padding = new[] { 8, 8, 8, 8 },
AutoFit = true,
XAxis = new ValueCatTimeAxis
{
Visible = false
},
YAxis = new ValueAxis
{
Visible = false
}
};
[Parameter]
public ChartDataItem[] Data { get; set; }
}