You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DotNet.Highcharts/DotNet.Highcharts/Options/Chart.cs
+54-5Lines changed: 54 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
usingDotNet.Highcharts.Enums;
4
4
usingDotNet.Highcharts.Attributes;
5
5
usingDotNet.Highcharts.Helpers;
6
+
// ReSharper disable InconsistentNaming
6
7
7
8
namespaceDotNet.Highcharts.Options
8
9
{
@@ -58,6 +59,7 @@ public class Chart
58
59
/// Alias of <code>type</code>.
59
60
/// Default: line
60
61
/// </summary>
62
+
[Obsolete]
61
63
publicChartTypes?DefaultSeriesType{get;set;}
62
64
63
65
/// <summary>
@@ -72,10 +74,12 @@ public class Chart
72
74
/// </summary>
73
75
publicChartEventsEvents{get;set;}
74
76
75
-
/// <summary>
76
-
/// An explicit height for the chart. By default the height is calculated from the offset height of the containing element, or 400 pixels if the containing element's height is 0.
77
-
/// </summary>
78
-
publicNumber?Height{get;set;}
77
+
/// <summary>
78
+
/// An explicit height for the chart. If a number, the height is given in pixels. If given a percentage string (for example '56%'), the height is given as the percentage of the actual chart width. This allows for preserving the aspect ratio across responsive sizes.
79
+
/// By default (when null) the height is calculated from the offset height of the containing element, or 400 pixels if the containing element's height is 0.
80
+
/// Default: null
81
+
/// </summary>
82
+
publicStringNumber?Height{get;set;}
79
83
80
84
/// <summary>
81
85
/// If true, the axes will scale to the remaining visible series once one series is hidden. If false, hiding and showing a series will not affect the axes or the other series. For stacks, once one series within the stack is hidden, the rest of the stack will close in around it even if the axis is not affected.
@@ -92,7 +96,7 @@ public class Chart
92
96
/// <summary>
93
97
/// <p>The margin between the outer edge of the chart and the plot area. The numbers in the array designate top, right, bottom and left respectively. Use the options <code>marginTop</code>, <code>marginRight</code>, <code>marginBottom</code> and <code>marginLeft</code> for shorthand setting of one option.</p> <p>Since version 2.1, the margin is 0 by default. The actual space is dynamically calculated from the offset of axis labels, axis title, title, subtitle and legend in addition to the <code>spacingTop</code>, <code>spacingRight</code>, <code>spacingBottom</code> and <code>spacingLeft</code> options.</p> Defaults to <code>[null]</code>.
94
98
/// </summary>
95
-
publicint[]Margin{get;set;}
99
+
publicNumber?[]Margin{get;set;}
96
100
97
101
/// <summary>
98
102
/// The margin between the bottom outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See also <code>spacingBottom</code>.
@@ -114,6 +118,51 @@ public class Chart
114
118
/// </summary>
115
119
publicNumber?MarginTop{get;set;}
116
120
121
+
/// <summary>
122
+
/// Options to render charts in 3 dimensions. This feature requires highcharts-3d.js, found in the download package or online at code.highcharts.com/highcharts-3d.js.
123
+
/// </summary>
124
+
publicOptions3d.Options3dOptions3d{get;set;}
125
+
126
+
/// <summary>
127
+
/// Allows setting a key to switch between zooming and panning. Can be one of alt, ctrl, meta (the command key on Mac and Windows key on Windows) or shift. The keys are mapped directly to the key properties of the click event argument (event.altKey, event.ctrlKey, event.metaKey and event.shiftKey).
128
+
/// Default: undefined
129
+
/// </summary>
130
+
publicstringPanKey{get;set;}
131
+
132
+
/// <summary>
133
+
/// Allow panning in a chart. Best used with panKey to combine zooming and panning.
134
+
/// On touch devices, when the tooltip.followTouchMove option is true (default), panning requires two fingers. To allow panning with one finger, set followTouchMove to false.
135
+
/// Default: false
136
+
/// </summary>
137
+
publicbool?Panning{get;set;}
138
+
139
+
/// <summary>
140
+
/// Common options for all yAxes rendered in a parallel coordinates plot. This feature requires modules/parallel-coordinates.js.
/// Flag to render charts as a parallel coordinates plot. In a parallel coordinates plot (||-coords) by default all required yAxes are generated and the legend is disabled. This feature requires modules/parallel-coordinates.js.
162
+
/// Default: false
163
+
/// </summary>
164
+
publicbool?ParallelCoordinates{get;set;}
165
+
117
166
/// <summary>
118
167
/// Equivalent to <a href='#chart.zoomType'>zoomType</a>, but for multitouch gestures only. By default, the <code>pinchType</code> is the same as the <code>zoomType</code> setting. However, pinching can be enabled separately in some cases, for example in stock charts where a mouse drag pans the chart, while pinching is enabled.
0 commit comments