18 lines
476 B
C#
18 lines
476 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet.WebApp.Charts.Models.Common;
|
|
|
|
public class ChartLayout
|
|
{
|
|
/// <summary>
|
|
/// The padding to add inside the chart
|
|
/// </summary>
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public ChartPadding? Padding { get; set; }
|
|
|
|
/// <summary>
|
|
/// Apply automatic padding so visible elements are completely drawn.
|
|
/// </summary>
|
|
public bool AutoPadding { get; set; } = true;
|
|
}
|