Skip to content

Commit bde3647

Browse files
committed
Enhance PieChartDataset with new properties and descriptions
Updated the `PieChartDataset` class in `PieChartDataset.cs` to include additional properties: - `Offset` with a description for arc offset in pixels (List<double>?). - `Rotation` with a description for the starting angle of arcs (double?). - `Spacing` clarified as a fixed arc offset for all arcs (double, default 0). - `Weight` enhanced with a description for relative thickness (double, default 1). NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 21a8117 commit bde3647

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

BlazorExpress.ChartJS/Models/ChartDataset/PieChart/PieChartDataset.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ public class PieChartDataset : ChartDataset<double?>
243243
/// </summary>
244244
[AddedVersion("1.0.0")]
245245
[DefaultValue(0)]
246-
[Description("")]
247-
//[ParameterTypeName("")]
246+
[Description("Arc offset (in pixels).")]
247+
[ParameterTypeName("List<double>?")]
248248
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
249249
public List<double>? Offset { get; set; }
250250

@@ -256,8 +256,8 @@ public class PieChartDataset : ChartDataset<double?>
256256
/// </summary>
257257
[AddedVersion("1.0.0")]
258258
[DefaultValue(null)]
259-
[Description("")]
260-
//[ParameterTypeName("")]
259+
[Description("Per-dataset override for the starting angle to draw arcs from.")]
260+
[ParameterTypeName("double?")]
261261
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
262262
public double? Rotation { get; set; }
263263

@@ -269,8 +269,7 @@ public class PieChartDataset : ChartDataset<double?>
269269
/// </summary>
270270
[AddedVersion("1.0.0")]
271271
[DefaultValue(0)]
272-
[Description("")]
273-
//[ParameterTypeName("")]
272+
[Description("Fixed arc offset (in pixels). Similar to <code>Offset</code> but applies to all arcs.")]
274273
public double Spacing { get; set; }
275274

276275
/// <summary>
@@ -283,8 +282,7 @@ public class PieChartDataset : ChartDataset<double?>
283282
/// </summary>
284283
[AddedVersion("1.0.0")]
285284
[DefaultValue(1)]
286-
[Description("")]
287-
//[ParameterTypeName("")]
285+
[Description("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]
288286
public double Weight { get; set; } = 1;
289287

290288
#endregion

0 commit comments

Comments
 (0)