1
1
namespace BlazorBootstrap ;
2
2
3
3
/// <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.
5
5
/// These are used to set display properties for a specific dataset.
6
6
/// <see href="https://www.chartjs.org/docs/latest/charts/doughnut.html#dataset-properties" />.
7
7
/// </summary>
8
- public class DoughnutChartDataset : ChartDataset
8
+ public class DoughnutChartDataset : ChartDataset < double ? >
9
9
{
10
10
#region Properties, Indexers
11
11
@@ -20,7 +20,7 @@ public class DoughnutChartDataset : ChartDataset
20
20
21
21
/// <summary>
22
22
/// 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.
24
24
/// When 'inner' is set, it is guaranteed that all borders will not overlap.
25
25
/// </summary>
26
26
/// <remarks>
@@ -42,7 +42,7 @@ public class DoughnutChartDataset : ChartDataset
42
42
/// Arc border length and spacing of dashes.
43
43
/// </summary>
44
44
/// <remarks>
45
- /// Default value is <see langword="null"/>.
45
+ /// Default value is <see langword="null" />.
46
46
/// </remarks>
47
47
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
48
48
public List < double > ? BorderDash { get ; set ; }
@@ -60,7 +60,7 @@ public class DoughnutChartDataset : ChartDataset
60
60
/// Supported values are 'round', 'bevel', 'miter'.
61
61
/// </summary>
62
62
/// <remarks>
63
- /// Default value is <see langword="null"/>.
63
+ /// Default value is <see langword="null" />.
64
64
/// </remarks>
65
65
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
66
66
public List < string > ? BorderJoinStyle { get ; set ; } // TODO: change this to enum
@@ -87,28 +87,19 @@ public class DoughnutChartDataset : ChartDataset
87
87
/// Per-dataset override for the sweep that the arcs cover.
88
88
/// </summary>
89
89
/// <remarks>
90
- /// Default value is <see langword="null"/>.
90
+ /// Default value is <see langword="null" />.
91
91
/// </remarks>
92
92
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
93
93
public double ? Circumference { get ; set ; }
94
94
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
-
104
95
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
105
96
public DoughnutChartDatasetDataLabels Datalabels { get ; set ; } = new ( ) ; // TODO: add the reference link
106
97
107
98
/// <summary>
108
99
/// Arc background color when hovered.
109
100
/// </summary>
110
101
/// <remarks>
111
- /// Default value is <see langword="null"/>.
102
+ /// Default value is <see langword="null" />.
112
103
/// </remarks>
113
104
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
114
105
public List < string > ? HoverBackgroundColor { get ; set ; }
@@ -117,16 +108,16 @@ public class DoughnutChartDataset : ChartDataset
117
108
/// Arc border color when hovered.
118
109
/// </summary>
119
110
/// <remarks>
120
- /// Default value is <see langword="null"/>.
111
+ /// Default value is <see langword="null" />.
121
112
/// </remarks>
122
113
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
123
114
public List < string > ? HoverBorderColor { get ; set ; }
124
115
125
116
/// <summary>
126
- /// Arc border length and spacing of dashes when hovered.
117
+ /// Arc border length and spacing of dashes when hovered.
127
118
/// </summary>
128
119
/// <remarks>
129
- /// Default value is <see langword="null"/>.
120
+ /// Default value is <see langword="null" />.
130
121
/// </remarks>
131
122
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
132
123
public List < double > ? HoverBorderDash { get ; set ; }
@@ -135,7 +126,7 @@ public class DoughnutChartDataset : ChartDataset
135
126
/// Arc border offset for line dashes when hovered.
136
127
/// </summary>
137
128
/// <remarks>
138
- /// Default value is <see langword="null"/>.
129
+ /// Default value is <see langword="null" />.
139
130
/// </remarks>
140
131
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
141
132
public double ? HoverBorderDashOffset { get ; set ; }
@@ -145,7 +136,7 @@ public class DoughnutChartDataset : ChartDataset
145
136
/// Supported values are 'round', 'bevel', 'miter'.
146
137
/// </summary>
147
138
/// <remarks>
148
- /// Default value is <see langword="null"/>.
139
+ /// Default value is <see langword="null" />.
149
140
/// </remarks>
150
141
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
151
142
public List < string > ? HoverBorderJoinStyle { get ; set ; } // TODO: change this to enum
@@ -154,7 +145,7 @@ public class DoughnutChartDataset : ChartDataset
154
145
/// Arc border width when hovered (in pixels).
155
146
/// </summary>
156
147
/// <remarks>
157
- /// Default value is <see langword="null"/>.
148
+ /// Default value is <see langword="null" />.
158
149
/// </remarks>
159
150
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
160
151
public List < double > ? HoverBorderWidth { get ; set ; }
@@ -181,7 +172,7 @@ public class DoughnutChartDataset : ChartDataset
181
172
/// Per-dataset override for the starting angle to draw arcs from.
182
173
/// </summary>
183
174
/// <remarks>
184
- /// Default value is <see langword="null"/>.
175
+ /// Default value is <see langword="null" />.
185
176
/// </remarks>
186
177
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
187
178
public double ? Rotation { get ; set ; }
@@ -195,8 +186,8 @@ public class DoughnutChartDataset : ChartDataset
195
186
public double Spacing { get ; set ; }
196
187
197
188
/// <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
200
191
/// with a thickness relative to the sum of all the dataset weight values.
201
192
/// </summary>
202
193
/// <remarks>
@@ -207,6 +198,4 @@ public class DoughnutChartDataset : ChartDataset
207
198
#endregion
208
199
}
209
200
210
- public class DoughnutChartDatasetDataLabels : ChartDatasetDataLabels
211
- {
212
- }
201
+ public class DoughnutChartDatasetDataLabels : ChartDatasetDataLabels { }
0 commit comments