inicio soporte informe
This commit is contained in:
29
Entidades/Dto/Chart/Chartjs.cs
Normal file
29
Entidades/Dto/Chart/Chartjs.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
public class ChartData
|
||||
{
|
||||
[JsonPropertyName("labels")]
|
||||
public List<string> Labels { get; set; }=new();
|
||||
|
||||
[JsonPropertyName("datasets")]
|
||||
public List<Dataset> Datasets { get; set; }=new();
|
||||
}
|
||||
|
||||
public class Dataset
|
||||
{
|
||||
[JsonPropertyName("label")]
|
||||
public string Label { get; set; } ="";
|
||||
|
||||
[JsonPropertyName("data")]
|
||||
public List<double> Data { get; set; }= new();
|
||||
/*
|
||||
[JsonPropertyName("backgroundColor")]
|
||||
public List<string> BackgroundColor { get; set; }
|
||||
|
||||
[JsonPropertyName("borderColor")]
|
||||
public List<string> BorderColor { get; set; }
|
||||
*/
|
||||
[JsonPropertyName("borderWidth")]
|
||||
public int BorderWidth { get; set; }=1;
|
||||
}
|
||||
Reference in New Issue
Block a user