36 lines
983 B
C#
36 lines
983 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet.WebApp.Charts.Models.Common.Plugins;
|
|
|
|
public class ChartPluginsLegendTitle
|
|
{
|
|
/// <summary>
|
|
/// Color of the legend. Default value is 'black'.
|
|
/// </summary>
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public string? Color { get; set; }
|
|
|
|
/// <summary>
|
|
/// Is the legend title displayed.
|
|
/// </summary>
|
|
public bool Display { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Padding around the title.
|
|
/// </summary>
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public ChartPadding? Padding { get; set; }
|
|
|
|
/// <summary>
|
|
/// The string title
|
|
/// </summary>
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public string? Text { get; set; }
|
|
|
|
/// <summary>
|
|
/// Font Legend Title
|
|
/// </summary>
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public ChartFont? Font { get; set; }
|
|
}
|