first commit -push
This commit is contained in:
46
RobotNet.WebApp/Charts/Models/Common/Elements/Bar.cs
Normal file
46
RobotNet.WebApp/Charts/Models/Common/Elements/Bar.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using RobotNet.WebApp.Charts.Enums;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RobotNet.WebApp.Charts.Models.Common.Elements;
|
||||
|
||||
public class Bar
|
||||
{
|
||||
/// <summary>
|
||||
/// Bar fill color.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? BackgroundColor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bar stroke width.
|
||||
/// </summary>
|
||||
public int BorderWidth { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Bar stroke color.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? BorderColor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Skipped (excluded) border.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public BorderSkipped? BorderSkipped { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The bar border radius (in pixels).
|
||||
/// </summary>
|
||||
public int BorderRadius { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The amount of pixels to inflate the bar rectangle(s) when drawing.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public int? InflateAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Style of the point for legend.
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public PointStyle? PointStyle { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user