diff --git a/blazorbootstrap/Models/Charts/ChartOptions/ChartOptions.cs b/blazorbootstrap/Models/Charts/ChartOptions/ChartOptions.cs
index 6d0c4877e..34f43d86e 100644
--- a/blazorbootstrap/Models/Charts/ChartOptions/ChartOptions.cs
+++ b/blazorbootstrap/Models/Charts/ChartOptions/ChartOptions.cs
@@ -24,7 +24,7 @@ public class ChartOptions : IChartOptions
/// .
///
///
- /// Default value is .
+ /// Default value is .
///
public bool MaintainAspectRatio { get; set; } = true;
@@ -36,10 +36,10 @@ public class ChartOptions : IChartOptions
///
/// Resizes the chart canvas when its container does.
- /// . ///
+ /// . ///
///
///
- /// Default value is .
+ /// Default value is .
///
public bool Responsive { get; set; }
@@ -58,7 +58,7 @@ public class ChartLayout
/// Apply automatic padding so visible elements are completely drawn.
///
///
- /// Default value is .
+ /// Default value is .
///
public bool AutoPadding { get; set; } = true;
@@ -71,7 +71,7 @@ public class ChartLayout
}
///
-/// Namespace: options.interaction, the global interaction configuration is at Chart.defaults.interaction.
+/// Namespace: options.interaction, the global interaction configuration is at Chart.defaults.interaction.
/// .
///
public class Interaction
@@ -122,7 +122,7 @@ private void SetMode(InteractionMode interactionMode) =>
/// if , the interaction mode only applies when the mouse position intersects an item on the chart.
///
///
- /// Default value is .
+ /// Default value is .
///
public bool Intersect { get; set; } = true;
@@ -140,10 +140,10 @@ public InteractionMode Mode
}
}
+ #endregion
+
//includeInvisible
//https://www.chartjs.org/docs/latest/configuration/interactions.html#interactions
-
- #endregion
}
public enum InteractionMode
@@ -160,11 +160,22 @@ public class Scales
{
#region Properties, Indexers
- [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
- public ChartAxes? X { get; set; } = new();
+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ChartAxes? X { get; set; } = new();
+
+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ChartAxes? Y { get; set; } = new();
+
+ #endregion
+}
+
+public class ChartAxesType
+{
+ #region Fields and Constants
- [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
- public ChartAxes? Y { get; set; } = new();
+ public static readonly string Linear = "linear";
+ public static readonly string Logarithmic = "logarithmic";
+ public static readonly string Category = "category";
+ public static readonly string Time = "time";
+ public static readonly string Timeseries = "timeseries";
#endregion
}
@@ -232,10 +243,10 @@ public class ChartAxes
public ChartAxesTitle? Title { get; set; }
///
- /// Gets or sets the index scale type.
+ /// Gets or sets the index scale type. See .
///
///
- /// Default value is .
+ /// Default value is .
///
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Type { get; set; }