using RobotNet.WebApp.Charts.Enums; using System.Text.Json.Serialization; namespace RobotNet.WebApp.Charts.Models.Common.Elements; public class Bar { /// /// Bar fill color. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? BackgroundColor { get; set; } /// /// Bar stroke width. /// public int BorderWidth { get; set; } = 1; /// /// Bar stroke color. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? BorderColor { get; set; } /// /// Skipped (excluded) border. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public BorderSkipped? BorderSkipped { get; set; } /// /// The bar border radius (in pixels). /// public int BorderRadius { get; set; } /// /// The amount of pixels to inflate the bar rectangle(s) when drawing. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? InflateAmount { get; set; } /// /// Style of the point for legend. [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public PointStyle? PointStyle { get; set; } }