11namespace BlazorBootstrap ;
22
33/// <summary>
4- /// The doughnut/pie chart allows a number of properties to be specified for each dataset.
4+ /// The doughnut/pie chart allows a number of properties to be specified for each dataset.
55/// These are used to set display properties for a specific dataset.
66/// <see href="https://www.chartjs.org/docs/latest/charts/doughnut.html#dataset-properties" />.
77/// </summary>
8- public class DoughnutChartDataset : ChartDataset
8+ public class DoughnutChartDataset : ChartDataset < double ? >
99{
1010 #region Properties, Indexers
1111
@@ -20,7 +20,7 @@ public class DoughnutChartDataset : ChartDataset
2020
2121 /// <summary>
2222 /// Supported values are 'center' and 'inner'.
23- /// When 'center' is set, the borders of arcs next to each other will overlap.
23+ /// When 'center' is set, the borders of arcs next to each other will overlap.
2424 /// When 'inner' is set, it is guaranteed that all borders will not overlap.
2525 /// </summary>
2626 /// <remarks>
@@ -42,7 +42,7 @@ public class DoughnutChartDataset : ChartDataset
4242 /// Arc border length and spacing of dashes.
4343 /// </summary>
4444 /// <remarks>
45- /// Default value is <see langword="null"/>.
45+ /// Default value is <see langword="null" />.
4646 /// </remarks>
4747 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
4848 public List < double > ? BorderDash { get ; set ; }
@@ -60,7 +60,7 @@ public class DoughnutChartDataset : ChartDataset
6060 /// Supported values are 'round', 'bevel', 'miter'.
6161 /// </summary>
6262 /// <remarks>
63- /// Default value is <see langword="null"/>.
63+ /// Default value is <see langword="null" />.
6464 /// </remarks>
6565 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
6666 public List < string > ? BorderJoinStyle { get ; set ; } // TODO: change this to enum
@@ -87,28 +87,19 @@ public class DoughnutChartDataset : ChartDataset
8787 /// Per-dataset override for the sweep that the arcs cover.
8888 /// </summary>
8989 /// <remarks>
90- /// Default value is <see langword="null"/>.
90+ /// Default value is <see langword="null" />.
9191 /// </remarks>
9292 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
9393 public double ? Circumference { get ; set ; }
9494
95- /// <summary>
96- /// Get or sets the Data.
97- /// </summary>
98- /// <remarks>
99- /// Default value is <see langword="null"/>.
100- /// </remarks>
101- [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
102- public new List < double ? > ? Data { get ; set ; }
103-
10495 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
10596 public DoughnutChartDatasetDataLabels Datalabels { get ; set ; } = new ( ) ; // TODO: add the reference link
10697
10798 /// <summary>
10899 /// Arc background color when hovered.
109100 /// </summary>
110101 /// <remarks>
111- /// Default value is <see langword="null"/>.
102+ /// Default value is <see langword="null" />.
112103 /// </remarks>
113104 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
114105 public List < string > ? HoverBackgroundColor { get ; set ; }
@@ -117,16 +108,16 @@ public class DoughnutChartDataset : ChartDataset
117108 /// Arc border color when hovered.
118109 /// </summary>
119110 /// <remarks>
120- /// Default value is <see langword="null"/>.
111+ /// Default value is <see langword="null" />.
121112 /// </remarks>
122113 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
123114 public List < string > ? HoverBorderColor { get ; set ; }
124115
125116 /// <summary>
126- /// Arc border length and spacing of dashes when hovered.
117+ /// Arc border length and spacing of dashes when hovered.
127118 /// </summary>
128119 /// <remarks>
129- /// Default value is <see langword="null"/>.
120+ /// Default value is <see langword="null" />.
130121 /// </remarks>
131122 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
132123 public List < double > ? HoverBorderDash { get ; set ; }
@@ -135,7 +126,7 @@ public class DoughnutChartDataset : ChartDataset
135126 /// Arc border offset for line dashes when hovered.
136127 /// </summary>
137128 /// <remarks>
138- /// Default value is <see langword="null"/>.
129+ /// Default value is <see langword="null" />.
139130 /// </remarks>
140131 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
141132 public double ? HoverBorderDashOffset { get ; set ; }
@@ -145,7 +136,7 @@ public class DoughnutChartDataset : ChartDataset
145136 /// Supported values are 'round', 'bevel', 'miter'.
146137 /// </summary>
147138 /// <remarks>
148- /// Default value is <see langword="null"/>.
139+ /// Default value is <see langword="null" />.
149140 /// </remarks>
150141 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
151142 public List < string > ? HoverBorderJoinStyle { get ; set ; } // TODO: change this to enum
@@ -154,7 +145,7 @@ public class DoughnutChartDataset : ChartDataset
154145 /// Arc border width when hovered (in pixels).
155146 /// </summary>
156147 /// <remarks>
157- /// Default value is <see langword="null"/>.
148+ /// Default value is <see langword="null" />.
158149 /// </remarks>
159150 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
160151 public List < double > ? HoverBorderWidth { get ; set ; }
@@ -181,7 +172,7 @@ public class DoughnutChartDataset : ChartDataset
181172 /// Per-dataset override for the starting angle to draw arcs from.
182173 /// </summary>
183174 /// <remarks>
184- /// Default value is <see langword="null"/>.
175+ /// Default value is <see langword="null" />.
185176 /// </remarks>
186177 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
187178 public double ? Rotation { get ; set ; }
@@ -195,8 +186,8 @@ public class DoughnutChartDataset : ChartDataset
195186 public double Spacing { get ; set ; }
196187
197188 /// <summary>
198- /// The relative thickness of the dataset.
199- /// Providing a value for weight will cause the pie or doughnut dataset to be drawn
189+ /// The relative thickness of the dataset.
190+ /// Providing a value for weight will cause the pie or doughnut dataset to be drawn
200191 /// with a thickness relative to the sum of all the dataset weight values.
201192 /// </summary>
202193 /// <remarks>
@@ -207,6 +198,4 @@ public class DoughnutChartDataset : ChartDataset
207198 #endregion
208199}
209200
210- public class DoughnutChartDatasetDataLabels : ChartDatasetDataLabels
211- {
212- }
201+ public class DoughnutChartDatasetDataLabels : ChartDatasetDataLabels { }
0 commit comments