using RobotNet.WebApp.Charts.Enums; using RobotNet.WebApp.Charts.Models.Common; using System.Text.Json.Serialization; namespace RobotNet.WebApp.Charts.Models.BarChart.Axes; public class ChartAxesTicks { [JsonPropertyName("align")] public TicksAlignment Alignment { get; set; } = TicksAlignment.Center; /// /// Color of label backdrops /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? BackdropColor { get; set; } /// /// Padding of label backdrop /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? BackdropPadding { get; set; } /// /// Color of ticks /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Color { get; set; } /// /// If , show tick labels. /// public bool Display { get; set; } = true; /// /// defines options for the major tick marks that are generated by the axis. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ChartAxesTicksMajor? Major { get; set; } /// /// Sets the offset of the tick labels from the axis /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ChartPadding? Padding { get; set; } /// /// If , draw a background behind the tick labels. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? ShowLabelBackdrop { get; set; } /// /// The color of the stroke around the text. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? TextStrokeColor { get; set; } /// /// Stroke width around the text. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? TextStrokeWidth { get; set; } }