43 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|