Skip to content

Commit

Permalink
Removed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
joadan committed Aug 27, 2023
1 parent 2140128 commit 22956d0
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 142 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
Style = new Style{ Background="red" }
},
X = 40,
BorderWidth = 3,
// BorderWidth = 3,
StrokeDashArray = 2,
BorderColor = "red"
}
Expand All @@ -50,7 +51,7 @@
Style = new Style { Background = "blue", Color="white"}
},
Y = 70000,
BorderWidth = 3,
// BorderWidth = 3,
BorderColor = "blue",
StrokeDashArray = 0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
{
X = "Sweden",
StrokeDashArray = 10,
BorderWidth = 2,
BorderWidth = 10,

Label = new Label
{
Text = "X Axis Annotation"
Expand Down
419 changes: 288 additions & 131 deletions src/Blazor-ApexCharts/Blazor-ApexCharts.xml

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/Blazor-ApexCharts/Models/ApexChartOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,7 @@ public class AnnotationsXAxis
/// </summary>
public string BorderColor { get; set; }

#pragma warning disable CS1591 // Documentation not available for obsolete properties
[Obsolete("This property is no longer available")]
#pragma warning disable CS1591 // Documentation not available but property is valid
public double? BorderWidth { get; set; }
#pragma warning restore CS1591

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ namespace ApexCharts.Models
/// <remarks>
/// <see href="https://stackoverflow.com/questions/59059989/system-text-json-how-do-i-specify-a-custom-name-for-an-enum-value">Stackoverflow Discussion</see>
/// </remarks>
public class CustomJsonStringEnumConverter : JsonConverterFactory
internal class CustomJsonStringEnumConverter : JsonConverterFactory
{
private readonly JsonNamingPolicy namingPolicy;
private readonly bool allowIntegerValues;
private readonly JsonStringEnumConverter baseConverter;

public CustomJsonStringEnumConverter() : this(null, true) { }
internal CustomJsonStringEnumConverter() : this(null, true) { }

public CustomJsonStringEnumConverter(JsonNamingPolicy namingPolicy = null, bool allowIntegerValues = true)
internal CustomJsonStringEnumConverter(JsonNamingPolicy namingPolicy = null, bool allowIntegerValues = true)
{
this.namingPolicy = namingPolicy;
this.allowIntegerValues = allowIntegerValues;
Expand Down Expand Up @@ -53,11 +53,11 @@ public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializer
}
}

public class JsonNamingPolicyDecorator : JsonNamingPolicy
internal class JsonNamingPolicyDecorator : JsonNamingPolicy
{
readonly JsonNamingPolicy underlyingNamingPolicy;

public JsonNamingPolicyDecorator(JsonNamingPolicy underlyingNamingPolicy) => this.underlyingNamingPolicy = underlyingNamingPolicy;
internal JsonNamingPolicyDecorator(JsonNamingPolicy underlyingNamingPolicy) => this.underlyingNamingPolicy = underlyingNamingPolicy;

/// <inheritdoc/>
public override string ConvertName(string name) => underlyingNamingPolicy == null ? name : underlyingNamingPolicy.ConvertName(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ namespace ApexCharts
/// Return data from JavaScript when a data point event occurs
/// </summary>
public class JSDataPointSelection
{
{
/// <summary>
/// List of selected DataPoints
/// </summary>
public List<List<int?>> SelectedDataPoints { get; set; }

/// <summary>
Expand Down Expand Up @@ -119,6 +122,9 @@ public class ZoomedData<TItem> where TItem : class
/// <inheritdoc cref="SelectionXAxis"/>
public SelectionXAxis XAxis { get; set; }

/// <summary>
/// Y Axis objects
/// </summary>
public List<object> YAxis { get; set; }

/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions src/Blazor-ApexCharts/Series/IApexSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public interface IApexSeries<TItem> : IDisposable where TItem : class
/// The color to assign to values in the data series
/// </summary>
string Color { get; set; }

/// <summary>
/// The name of the group
/// </summary>
string Group { get; set; }

/// <inheritdoc cref="DataLabels.Enabled"/>
Expand Down
4 changes: 4 additions & 0 deletions src/Blazor-ApexCharts/Series/JSZoomed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ public class JSZoomed
/// <inheritdoc cref="SelectionXAxis"/>
public SelectionXAxis XAxis { get; set; }


/// <summary>
/// Y axis object
/// </summary>
public List<object> YAxis { get; set; }
}
}

0 comments on commit 22956d0

Please sign in to comment.