@@ -24,7 +24,7 @@ public class ChartOptions : IChartOptions
24
24
/// <see href="https://www.chartjs.org/docs/latest/configuration/responsive.html#configuration-options" />.
25
25
/// </summary>
26
26
/// <remarks>
27
- /// Default value is <see langword="true"/>.
27
+ /// Default value is <see langword="true" />.
28
28
/// </remarks>
29
29
public bool MaintainAspectRatio { get ; set ; } = true ;
30
30
@@ -36,10 +36,10 @@ public class ChartOptions : IChartOptions
36
36
37
37
/// <summary>
38
38
/// Resizes the chart canvas when its container does.
39
- /// <see href="https://www.chartjs.org/docs/latest/configuration/responsive.html#configuration-options" />. ///
39
+ /// <see href="https://www.chartjs.org/docs/latest/configuration/responsive.html#configuration-options" />. ///
40
40
/// </summary>
41
41
/// <remarks>
42
- /// Default value is <see langword="false"/>.
42
+ /// Default value is <see langword="false" />.
43
43
/// </remarks>
44
44
public bool Responsive { get ; set ; }
45
45
@@ -58,7 +58,7 @@ public class ChartLayout
58
58
/// Apply automatic padding so visible elements are completely drawn.
59
59
/// </summary>
60
60
/// <remarks>
61
- /// Default value is <see langword="true"/>.
61
+ /// Default value is <see langword="true" />.
62
62
/// </remarks>
63
63
public bool AutoPadding { get ; set ; } = true ;
64
64
@@ -71,7 +71,7 @@ public class ChartLayout
71
71
}
72
72
73
73
/// <summary>
74
- /// Namespace: options.interaction, the global interaction configuration is at Chart.defaults.interaction.
74
+ /// Namespace: options.interaction, the global interaction configuration is at Chart.defaults.interaction.
75
75
/// <see href="https://www.chartjs.org/docs/latest/configuration/interactions.html#interactions" />.
76
76
/// </summary>
77
77
public class Interaction
@@ -122,7 +122,7 @@ private void SetMode(InteractionMode interactionMode) =>
122
122
/// if <see langword="true" />, the interaction mode only applies when the mouse position intersects an item on the chart.
123
123
/// </summary>
124
124
/// <remarks>
125
- /// Default value is <see langword="true"/>.
125
+ /// Default value is <see langword="true" />.
126
126
/// </remarks>
127
127
public bool Intersect { get ; set ; } = true ;
128
128
@@ -140,10 +140,10 @@ public InteractionMode Mode
140
140
}
141
141
}
142
142
143
+ #endregion
144
+
143
145
//includeInvisible
144
146
//https://www.chartjs.org/docs/latest/configuration/interactions.html#interactions
145
-
146
- #endregion
147
147
}
148
148
149
149
public enum InteractionMode
@@ -160,11 +160,22 @@ public class Scales
160
160
{
161
161
#region Properties, Indexers
162
162
163
- [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
164
- public ChartAxes ? X { get ; set ; } = new ( ) ;
163
+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ] public ChartAxes ? X { get ; set ; } = new ( ) ;
164
+
165
+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ] public ChartAxes ? Y { get ; set ; } = new ( ) ;
166
+
167
+ #endregion
168
+ }
169
+
170
+ public class ChartAxesType
171
+ {
172
+ #region Fields and Constants
165
173
166
- [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
167
- public ChartAxes ? Y { get ; set ; } = new ( ) ;
174
+ public static readonly string Linear = "linear" ;
175
+ public static readonly string Logarithmic = "logarithmic" ;
176
+ public static readonly string Category = "category" ;
177
+ public static readonly string Time = "time" ;
178
+ public static readonly string Timeseries = "timeseries" ;
168
179
169
180
#endregion
170
181
}
@@ -232,10 +243,10 @@ public class ChartAxes
232
243
public ChartAxesTitle ? Title { get ; set ; }
233
244
234
245
/// <summary>
235
- /// Gets or sets the index scale type.
246
+ /// Gets or sets the index scale type. See <see cref="ChartAxesType" />.
236
247
/// </summary>
237
248
/// <remarks>
238
- /// Default value is <see langword="null"/>.
249
+ /// Default value is <see langword="null" />.
239
250
/// </remarks>
240
251
[ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
241
252
public string ? Type { get ; set ; }
0 commit comments