using RobotNet.WebApp.Charts.Models.Common; using System.Text.Json.Serialization; namespace RobotNet.WebApp.Charts.Models.PieChart; public class PieChartOptions : ChartOptions { public PieChartPlugins Plugins { get; set; } = new(); /// /// Gets or sets the percentage of the chart that is cut out of the middle. /// Default for Pie is 0, Default for Doughnut is 50. This will be filled in by Chart.js unless you specify a non-null value. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Cutout { get; set; } /// /// Gets or sets the animation-configuration for this chart. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public new ArcAnimation? Animation { get; set; } /// /// Gets or sets the starting angle to draw arcs from. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public double? Rotation { get; set; } /// /// The outer radius of the chart. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public double? Radius { get; set; } /// /// Gets or sets the sweep to allow arcs to cover. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public double? Circumference { get; set; } }