Skip to content

Commit 2d6fba2

Browse files
committed
Add Animation property to ChartDataset and ChartOptions
The `Animation` property of type `ChartAnimation?` has been added to both the `ChartDataset<TData>` and `ChartOptions` classes. This property includes XML documentation detailing its purpose and default value, along with a link to the Chart.js animations configuration documentation. Metadata attributes such as `[AddedVersion("1.2.0")]`, `[DefaultValue(null)]`, and `[Description(...)]` have also been included. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 211fbf2 commit 2d6fba2

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

BlazorExpress.ChartJS/Models/ChartDataset/ChartDataset.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ public ChartDataset()
2222
/// <summary>
2323
/// Chart.js animates charts out of the box.
2424
/// A number of options are provided to configure how the animation looks and how long it takes.
25+
/// <para>
26+
/// Default value is <see langword="null"/>.
27+
/// </para>
28+
/// <see href="https://www.chartjs.org/docs/latest/configuration/animations.html" />
2529
/// </summary>
30+
[AddedVersion("1.2.0")]
31+
[DefaultValue(null)]
32+
[Description("Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes.")]
2633
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2734
public ChartAnimation? Animation { get; set; }
2835

BlazorExpress.ChartJS/Models/ChartOptions/ChartOptions.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ public class ChartOptions : IChartOptions
1515
/// <summary>
1616
/// Chart.js animates charts out of the box.
1717
/// A number of options are provided to configure how the animation looks and how long it takes.
18+
/// <para>
19+
/// Default value is <see langword="null"/>.
20+
/// </para>
21+
/// <see href="https://www.chartjs.org/docs/latest/configuration/animations.html" />
1822
/// </summary>
23+
[AddedVersion("1.2.0")]
24+
[DefaultValue(null)]
25+
[Description("Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes.")]
1926
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2027
public ChartAnimation? Animation { get; set; }
2128

0 commit comments

Comments
 (0)