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 ChartAxesTitle { /// /// Alignment of the title. /// Options are: 'start', 'center', and 'end' /// [JsonPropertyName("align")] public TitleAlignment Alignment { get; set; } = TitleAlignment.Center; /// /// Color of text. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Color { get; set; } = "black"; /// /// Is the title shown? /// public bool Display { get; set; } = true; public ChartFont? Font { get; set; } = new(); public bool FullSize { get; set; } = true; /// /// Gets or sets the position of the title. /// public TitlePosition Position { get; set; } = TitlePosition.Top; /// /// Gets or sets the number of pixels to add above and below the title text. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ChartPadding? Padding { get; set; } [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Text { get; set; } }