Skip to content

Commit 58b612a

Browse files
committed
Enhance ChartData and LineChartDataset functionality
Updated the `ChartData` class to include `Datasets` and `Labels` properties with appropriate attributes for JSON handling. Significant modifications to the `LineChartDataset` class include the addition of various properties for visual customization, hover effects, and point styling. New properties such as `ShowLine`, `SpanGaps`, `Stepped`, `Tension`, `XAxisID`, and `YAxisID` have been introduced to improve line rendering and dataset management. Overall, these changes enhance the functionality and customization options of the charting library. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 31a7c92 commit 58b612a

2 files changed

Lines changed: 140 additions & 2 deletions

File tree

BlazorExpress.ChartJS/Models/ChartData.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class ChartData
1616
[AddedVersion("1.0.0")]
1717
[DefaultValue(null)]
1818
[Description("Gets or sets the collection of datasets to be displayed in the chart.")]
19+
[EditorRequired]
1920
[ParameterTypeName("List<IChartDataset>?")]
2021
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2122
public List<IChartDataset>? Datasets { get; set; }
@@ -29,6 +30,7 @@ public class ChartData
2930
[AddedVersion("1.0.0")]
3031
[DefaultValue(null)]
3132
[Description("Gets or sets the labels for the chart, typically used for the x-axis or categories.")]
33+
[EditorRequired]
3234
[ParameterTypeName("List<string>?")]
3335
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
3436
public List<string>? Labels { get; set; }

0 commit comments

Comments
 (0)