From c973bef9404ec258a5836d7773eaf6c1032a32a2 Mon Sep 17 00:00:00 2001 From: Joelius300 Date: Tue, 2 Jun 2020 08:22:16 +0200 Subject: [PATCH] Fix radar-chart - Scale changed to LinearRadialAxis - Update summaries - Fixes #110 --- .../ChartJS/RadarChart/RadarConfig.cs | 8 +++++++- .../ChartJS/RadarChart/RadarOptions.cs | 17 +++++++++++++++-- src/ChartJs.Blazor/ChartJS/RadarChart/Scale.cs | 9 --------- 3 files changed, 22 insertions(+), 12 deletions(-) delete mode 100644 src/ChartJs.Blazor/ChartJS/RadarChart/Scale.cs diff --git a/src/ChartJs.Blazor/ChartJS/RadarChart/RadarConfig.cs b/src/ChartJs.Blazor/ChartJS/RadarChart/RadarConfig.cs index 3be876bb..1318aabf 100644 --- a/src/ChartJs.Blazor/ChartJS/RadarChart/RadarConfig.cs +++ b/src/ChartJs.Blazor/ChartJS/RadarChart/RadarConfig.cs @@ -3,8 +3,14 @@ namespace ChartJs.Blazor.ChartJS.RadarChart { + /// + /// Represents the config for a radar chart. + /// public class RadarConfig : ConfigBase { + /// + /// Creates a new instance of . + /// public RadarConfig() : base(ChartType.Radar) { } } -} \ No newline at end of file +} diff --git a/src/ChartJs.Blazor/ChartJS/RadarChart/RadarOptions.cs b/src/ChartJs.Blazor/ChartJS/RadarChart/RadarOptions.cs index ebab48ab..5f13058e 100644 --- a/src/ChartJs.Blazor/ChartJS/RadarChart/RadarOptions.cs +++ b/src/ChartJs.Blazor/ChartJS/RadarChart/RadarOptions.cs @@ -1,9 +1,22 @@ using ChartJs.Blazor.ChartJS.Common; +using ChartJs.Blazor.ChartJS.Common.Axes; namespace ChartJs.Blazor.ChartJS.RadarChart { + /// + /// Represents the options-subconfig of a . + /// public class RadarOptions : BaseConfigOptions { - public Scale Scale { get; set; } + /// + /// Gets or sets the scale configuration for this chart. + /// + public LinearRadialAxis Scale { get; set; } + + /// + /// Gets or sets a value indicating whether or not line gaps (by NaN data) will be spanned. + /// If , NaN data causes a break in the line. + /// + public bool? SpanGaps { get; set; } } -} \ No newline at end of file +} diff --git a/src/ChartJs.Blazor/ChartJS/RadarChart/Scale.cs b/src/ChartJs.Blazor/ChartJS/RadarChart/Scale.cs deleted file mode 100644 index 5f04edf8..00000000 --- a/src/ChartJs.Blazor/ChartJS/RadarChart/Scale.cs +++ /dev/null @@ -1,9 +0,0 @@ -using ChartJs.Blazor.ChartJS.Common.Axes.Ticks; - -namespace ChartJs.Blazor.ChartJS.RadarChart -{ - public class Scale - { - public CartesianTicks Ticks { get; set; } - } -} \ No newline at end of file