laatzen/LaaProductionWeb/LaaProductionWeb.Blazor/Components/HeliumTester/Models/ChartOptions.cs
2025-03-17 16:03:24 +01:00

43 lines
1.0 KiB
C#

namespace LaaProductionWeb.Blazor.Components.HeliumTester.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
public class ChartOptions
{
[JsonProperty("type")]
public string Type { get; set; } = "line";
[JsonProperty("data")]
public ChartData Data { get; set; } = new ChartData();
}
public class ChartData
{
[JsonProperty("labels")]
public List<object> Labels { get; set; } = [];
[JsonProperty("datasets")]
public List<ChartDataset> DataSets { get; set; } = [];
}
public class ChartDataset
{
[JsonProperty("label")]
public string Label { get; set; }
[JsonProperty("data")]
public List<object> Data { get; set; } = [];
[JsonProperty("pointStyle")]
public string PointStyle { get; set; } = "circle";
[JsonProperty("radius")]
public int Radius { get; set; }
[JsonProperty("tension")]
public double Tension { get; set; } = 0.1;
}
}