46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
namespace EgwCoreLib.Razor.Data
|
|
{
|
|
public class chartJsData
|
|
{
|
|
public class chartJsTSerie
|
|
{
|
|
public DateTime x { get; set; }
|
|
public decimal y { get; set; }
|
|
}
|
|
public class chartJsXY
|
|
{
|
|
public decimal x { get; set; }
|
|
public decimal y { get; set; }
|
|
}
|
|
|
|
public class chartJsDataSetXY
|
|
{
|
|
public string label { get; set; } = "DataSet00";
|
|
public string borderColor { get; set; } = "blue";
|
|
public string backgroundColor { get; set; } = "aqua";
|
|
public double lineTension { get; set; } = 0;
|
|
public bool stepped { get; set; } = false;
|
|
public string fill { get; set; } = "false";
|
|
public List<chartJsXY> data { get; set; } = new List<chartJsXY>();
|
|
public string[] valX
|
|
{
|
|
get => data.Select(val => $"{val.x}").ToArray();
|
|
}
|
|
public string[] valY
|
|
{
|
|
get => data.Select(val => $"{val.y}").ToArray();
|
|
}
|
|
}
|
|
|
|
public class chartJsDataSetTS
|
|
{
|
|
public string label { get; set; } = "DataSet00";
|
|
public string borderColor { get; set; } = "blue";
|
|
public string backgroundColor { get; set; } = "aqua";
|
|
public double lineTension { get; set; } = 0;
|
|
public bool stepped { get; set; } = false;
|
|
public List<chartJsTSerie> data { get; set; } = new List<chartJsTSerie>();
|
|
}
|
|
}
|
|
}
|