Skip to content

Commit

Permalink
Fix radar-chart
Browse files Browse the repository at this point in the history
- Scale changed to LinearRadialAxis
- Update summaries
- Fixes #110
  • Loading branch information
Joelius300 committed Jun 3, 2020
1 parent 751354f commit 6203279
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
8 changes: 7 additions & 1 deletion src/ChartJs.Blazor/ChartJS/RadarChart/RadarConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@

namespace ChartJs.Blazor.ChartJS.RadarChart
{
/// <summary>
/// Represents the config for a radar chart.
/// </summary>
public class RadarConfig : ConfigBase<RadarOptions, RadarData>
{
/// <summary>
/// Creates a new instance of <see cref="RadarConfig"/>.
/// </summary>
public RadarConfig() : base(ChartType.Radar) { }
}
}
}
17 changes: 15 additions & 2 deletions src/ChartJs.Blazor/ChartJS/RadarChart/RadarOptions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
using ChartJs.Blazor.ChartJS.Common;
using ChartJs.Blazor.ChartJS.Common.Axes;

namespace ChartJs.Blazor.ChartJS.RadarChart
{
/// <summary>
/// Represents the options-subconfig of a <see cref="RadarConfig"/>.
/// </summary>
public class RadarOptions : BaseConfigOptions
{
public Scale Scale { get; set; }
/// <summary>
/// Gets or sets the scale configuration for this chart.
/// </summary>
public LinearRadialAxis Scale { get; set; }

/// <summary>
/// Gets or sets a value indicating whether or not line gaps (by NaN data) will be spanned.
/// If <see langword="false"/>, NaN data causes a break in the line.
/// </summary>
public bool? SpanGaps { get; set; }
}
}
}
9 changes: 0 additions & 9 deletions src/ChartJs.Blazor/ChartJS/RadarChart/Scale.cs

This file was deleted.

0 comments on commit 6203279

Please sign in to comment.