Skip to content

Commit b091d79

Browse files
committed
Compare ApexChartOptions to TypeScript
Add properties existing only in TS Add Obsolete attribute to properties removed from JS and TS Remove unused PurpleDatum class Remove Obsolete attribute from properties in TS definition Remove empty XML comments Remove Shape enum
1 parent 5860af5 commit b091d79

File tree

1 file changed

+29
-71
lines changed

1 file changed

+29
-71
lines changed

src/Blazor-ApexCharts/Models/ApexChartOptions.cs

Lines changed: 29 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public class ApexChartOptions<TItem> where TItem : class
4040
/// <inheritdoc cref="ApexCharts.Fill" />
4141
public Fill Fill { get; set; }
4242

43+
/// <inheritdoc cref="ApexCharts.ForecastDataPoints" />
44+
public ForecastDataPoints ForecastDataPoints { get; set; }
45+
4346
/// <inheritdoc cref="ApexCharts.Grid" />
4447
public Grid Grid { get; set; }
4548

@@ -71,9 +74,6 @@ public class ApexChartOptions<TItem> where TItem : class
7174
/// <inheritdoc cref="ApexCharts.Series{TItem}" />
7275
public List<Series<TItem>> Series { get; set; }
7376

74-
/// <inheritdoc cref="ApexCharts.ForecastDataPoints" />
75-
public ForecastDataPoints ForecastDataPoints { get; set; }
76-
7777
/// <inheritdoc cref="ApexCharts.States" />
7878
public States States { get; set; }
7979

@@ -305,10 +305,7 @@ public class AnnotationsImage
305305
/// </summary>
306306
public class AnnotationsPoint
307307
{
308-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
309-
[Obsolete("This property is no longer available")]
310308
public string Id { get; set; }
311-
#pragma warning restore CS1591
312309

313310
/// <inheritdoc cref="ApexCharts.AnnotationsPointImage" />
314311
public AnnotationsPointImage Image { get; set; }
@@ -551,10 +548,7 @@ public class AnnotationsText
551548
/// </summary>
552549
public string AppendTo { get; set; }
553550

554-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
555-
[Obsolete("This property is no longer available")]
556551
public string BackgroundColor { get; set; }
557-
#pragma warning restore CS1591
558552

559553
/// <summary>
560554
/// Border Color for the label
@@ -586,10 +580,7 @@ public class AnnotationsText
586580
/// </summary>
587581
public object FontWeight { get; set; }
588582

589-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
590-
[Obsolete("This property is no longer available")]
591583
public string ForeColor { get; set; }
592-
#pragma warning restore CS1591
593584

594585
/// <summary>
595586
/// Bottom padding for the label
@@ -637,10 +628,7 @@ public class AnnotationsText
637628
/// </summary>
638629
public class AnnotationsXAxis
639630
{
640-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
641-
[Obsolete("This property is no longer available")]
642631
public string Id { get; set; }
643-
#pragma warning restore CS1591
644632

645633
/// <summary>
646634
/// Color of the annotation line
@@ -696,19 +684,13 @@ public class AnnotationsXAxis
696684
/// </summary>
697685
public class AnnotationsYAxis
698686
{
699-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
700-
[Obsolete("This property is no longer available")]
701687
public string Id { get; set; }
702-
#pragma warning restore CS1591
703688

704689
/// <summary>
705690
/// Color of the annotation line
706691
/// </summary>
707692
public string BorderColor { get; set; }
708693

709-
/// <summary>
710-
///
711-
/// </summary>
712694
public double? BorderWidth { get; set; }
713695

714696
/// <summary>
@@ -1084,6 +1066,8 @@ public class Brush
10841066
/// Chart ID of the target chart to sync the brush chart and the target chart. If you have an array of multiple chart IDs, use targets property instead.
10851067
/// </summary>
10861068
public string Target { get; set; }
1069+
1070+
public List<string> Targets { get; set; }
10871071
}
10881072

10891073
/// <summary>
@@ -1216,6 +1200,12 @@ public class LocaleToolbar
12161200
/// Tooltip title text which appears when you hover over zoom out icon
12171201
/// </summary>
12181202
public string ZoomOut { get; set; }
1203+
1204+
public string ExportToSVG { get; set; }
1205+
1206+
public string ExportToPNG { get; set; }
1207+
1208+
public string ExportToCSV { get; set; }
12191209
}
12201210

12211211
/// <summary>
@@ -1953,13 +1943,9 @@ public class GridXAxis
19531943
/// </summary>
19541944
public class Lines
19551945
{
1956-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
1957-
[Obsolete("This property is no longer available")]
19581946
public double? OffsetX { get; set; }
19591947

1960-
[Obsolete("This property is no longer available")]
19611948
public double? OffsetY { get; set; }
1962-
#pragma warning restore CS1591
19631949

19641950
/// <summary>
19651951
/// Whether to show / hide y-axis lines
@@ -1988,13 +1974,9 @@ public class GridYAxis
19881974
/// </remarks>
19891975
public class Legend
19901976
{
1991-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
1992-
[Obsolete("This property is no longer available")]
19931977
public LegendContainerMargin ContainerMargin { get; set; }
19941978

1995-
[Obsolete("This property is no longer available")]
19961979
public string TextAnchor { get; set; }
1997-
#pragma warning restore CS1591
19981980

19991981
/// <summary>
20001982
/// The floating option will take out the legend from the chart area and make it float above the chart.
@@ -2121,14 +2103,11 @@ public class Legend
21212103
public List<string> CustomLegendItems { get; set; }
21222104
}
21232105

2124-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
2125-
[Obsolete("This property is no longer available")]
21262106
public class LegendContainerMargin
21272107
{
21282108
public double? Left { get; set; }
21292109
public double? Top { get; set; }
21302110
}
2131-
#pragma warning restore CS1591
21322111

21332112
/// <summary>
21342113
/// Defines the margin to apply to legend items
@@ -2348,6 +2327,10 @@ public class Markers
23482327
/// Stroke Size of the marker.
23492328
/// </summary>
23502329
public Size StrokeWidth { get; set; }
2330+
2331+
public Size Width { get; set; }
2332+
2333+
public Size Height { get; set; }
23512334
}
23522335

23532336
/// <summary>
@@ -2473,8 +2456,8 @@ public class NoDataStyle
24732456
/// </remarks>
24742457
public class PlotOptions
24752458
{
2476-
/// <inheritdoc cref="ApexCharts.PlotOptionsBoxPlot" />
2477-
public PlotOptionsBoxPlot BoxPlot { get; set; }
2459+
/// <inheritdoc cref="ApexCharts.PlotOptionsArea" />
2460+
public PlotOptionsArea Area { get; set; }
24782461

24792462
/// <inheritdoc cref="ApexCharts.PlotOptionsBar" />
24802463
public PlotOptionsBar Bar { get; set; }
@@ -2485,6 +2468,9 @@ public class PlotOptions
24852468
/// <inheritdoc cref="ApexCharts.PlotOptionsCandlestick" />
24862469
public PlotOptionsCandlestick Candlestick { get; set; }
24872470

2471+
/// <inheritdoc cref="ApexCharts.PlotOptionsBoxPlot" />
2472+
public PlotOptionsBoxPlot BoxPlot { get; set; }
2473+
24882474
/// <inheritdoc cref="ApexCharts.PlotOptionsHeatmap" />
24892475
public PlotOptionsHeatmap Heatmap { get; set; }
24902476

@@ -2502,9 +2488,6 @@ public class PlotOptions
25022488

25032489
/// <inheritdoc cref="ApexCharts.PlotOptionsTreemap" />
25042490
public PlotOptionsTreemap Treemap { get; set; }
2505-
2506-
/// <inheritdoc cref="ApexCharts.PlotOptionsArea" />
2507-
public PlotOptionsArea Area { get; set; }
25082491
}
25092492

25102493
/// <summary>
@@ -3594,10 +3577,8 @@ public class Track
35943577
/// </summary>
35953578
public double? StartAngle { get; set; }
35963579

3597-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
35983580
[Obsolete("This property is obsolete. Use Width instead.", false)]
35993581
public string StrokeWidth { get; set; }
3600-
#pragma warning restore CS1591
36013582

36023583
/// <summary>
36033584
/// Width of the track
@@ -3627,16 +3608,6 @@ public class Responsive
36273608
public object Options { get; set; }
36283609
}
36293610

3630-
#pragma warning disable CS1591 // Documentation not available for current version of ApexCharts.js
3631-
public class PurpleDatum
3632-
{
3633-
public string FillColor { get; set; }
3634-
public string StrokeColor { get; set; }
3635-
public object X { get; set; }
3636-
public object Y { get; set; }
3637-
}
3638-
#pragma warning restore CS1591
3639-
36403611
/// <summary>
36413612
/// Class to define styles that are applied on various interaction states with the chart.
36423613
/// </summary>
@@ -3748,6 +3719,8 @@ public class Stroke
37483719
/// Sets the width of border for svg path
37493720
/// </summary>
37503721
public Size Width { get; set; }
3722+
3723+
public Fill Fill { get; set; }
37513724
}
37523725

37533726
/// <summary>
@@ -4030,6 +4003,8 @@ public class Tooltip
40304003

40314004
/// <inheritdoc cref="ApexCharts.TooltipZ" />
40324005
public TooltipZ Z { get; set; }
4006+
4007+
public string CssClass { get; set; }
40334008
}
40344009

40354010
/// <summary>
@@ -4074,10 +4049,7 @@ public class TooltipItems
40744049
/// </summary>
40754050
public class TooltipMarker
40764051
{
4077-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
4078-
[Obsolete("This property is no longer available")]
40794052
public List<string> FillColors { get; set; }
4080-
#pragma warning restore CS1591
40814053

40824054
/// <summary>
40834055
/// Whether to show the color coded marker shape in front of Series Name which helps to identify series in multiple datasets.
@@ -4260,10 +4232,7 @@ public class XAxis
42604232
/// </summary>
42614233
public double? Range { get; set; }
42624234

4263-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
4264-
[Obsolete("This property is no longer available")]
42654235
public bool? Sorted { get; set; }
4266-
#pragma warning restore CS1591
42674236

42684237
/// <summary>
42694238
/// Number of Tick Intervals to show. Note: tickAmount doesn't have any effect when <see cref="Type"/> = <see cref="XAxisType.Datetime"/>
@@ -4390,6 +4359,8 @@ public class AxisBorder
43904359
/// Sets the width of the axis line
43914360
/// </summary>
43924361
public double? Width { get; set; }
4362+
4363+
public double? StrokeWidth { get; set; }
43934364
}
43944365

43954366
/// <summary>
@@ -4488,10 +4459,7 @@ public class CrosshairsDropShadow
44884459
/// </summary>
44894460
public double? Blur { get; set; }
44904461

4491-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
4492-
[Obsolete("This property is no longer available")]
44934462
public string Color { get; set; }
4494-
#pragma warning restore CS1591
44954463

44964464
/// <summary>
44974465
/// Enable a dropshadow for crosshairs
@@ -4684,6 +4652,7 @@ public class XAxisLabels
46844652
public class YAxisLabels
46854653
{
46864654
/// <inheritdoc cref="ApexCharts.DatetimeFormatter" />
4655+
[Obsolete("Property has been removed", false)]
46874656
public DatetimeFormatter DatetimeFormatter { get; set; }
46884657

46894658
/// <summary>
@@ -4741,6 +4710,8 @@ public class YAxisLabels
47414710
/// Alignment of Y-axis label relative to chart area.
47424711
/// </summary>
47434712
public Align? Align { get; set; }
4713+
4714+
public double? Padding { get; set; }
47444715
}
47454716

47464717
/// <summary>
@@ -4758,13 +4729,9 @@ public class DatetimeFormatter
47584729
/// </summary>
47594730
public string Hour { get; set; }
47604731

4761-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
4762-
[Obsolete("This property is no longer available")]
47634732
public string Minute { get; set; }
47644733

4765-
[Obsolete("This property is no longer available")]
47664734
public string Second { get; set; }
4767-
#pragma warning restore CS1591
47684735

47694736
/// <summary>
47704737
/// Format specifier for the month.
@@ -5044,15 +5011,6 @@ public class AxisTitleStyle
50445011
public object FontWeight { get; set; }
50455012
}
50465013

5047-
#pragma warning disable CS1591 // Documentation not available for obsolete properties
5048-
[Obsolete("Deprecated since 3.24.0")]
5049-
public enum Shape
5050-
{
5051-
Flat,
5052-
Rounded
5053-
};
5054-
#pragma warning restore CS1591
5055-
50565014
#pragma warning disable CS1591 // Enum values are self-explanatory
50575015
/// <summary>
50585016
/// A list of easing options for animations

0 commit comments

Comments
 (0)