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
plotlyjs v2.15: Add minreducedwidth and minreducedheight to layout for increasing control over automargin (plotly/plotly.js#6307), Fix unused attributes in Layout.init and Chart.withLayoutStyle
Copy file name to clipboardExpand all lines: src/Plotly.NET/ChartAPI/Chart.fs
+16-1
Original file line number
Diff line number
Diff line change
@@ -763,7 +763,7 @@ type Chart =
763
763
/// <summary>
764
764
/// Applies the given styles to the chart's Layout object. Overwrites attributes with the same name that are already set.
765
765
/// </summary>
766
-
/// <param name="Title">Sets the title of the layout.</param>
766
+
/// <param name="Title">Sets the title of the layout.</param>
767
767
/// <param name="ShowLegend">Determines whether or not a legend is drawn. Default is `true` if there is a trace to show and any of these: a) Two or more traces would by default be shown in the legend. b) One pie trace is shown in the legend. c) One trace is explicitly given with `showlegend: true`.</param>
768
768
/// <param name="Legend">Sets the legend styles of the layout.</param>
769
769
/// <param name="Margin">Sets the margins around the layout.</param>
@@ -783,6 +783,8 @@ type Chart =
783
783
/// <param name="ClickMode">Determines the mode of single click interactions. "event" is the default value and emits the `plotly_click` event. In addition this mode emits the `plotly_selected` event in drag modes "lasso" and "select", but with no event data attached (kept for compatibility reasons). The "select" flag enables selecting single data points via click. This mode also supports persistent selections, meaning that pressing Shift while clicking, adds to / subtracts from an existing selection. "select" with `hovermode`: "x" can be confusing, consider explicitly setting `hovermode`: "closest" when using this feature. Selection events are sent accordingly as long as "event" flag is set as well. When the "event" flag is missing, `plotly_click` and `plotly_selected` events are not fired.</param>
784
784
/// <param name="DragMode">Determines the mode of drag interactions. "select" and "lasso" apply only to scatter traces with markers or text. "orbit" and "turntable" apply only to 3D scenes.</param>
785
785
/// <param name="SelectDirection">When `dragmode` is set to "select", this limits the selection of the drag to horizontal, vertical or diagonal. "h" only allows horizontal selection, "v" only vertical, "d" only diagonal and "any" sets no limit.</param>
786
+
/// <param name="ActiveSelection">Sets the styling of the active selection</param>
787
+
/// <param name="NewSelection">Controls the behavior of newly drawn selections</param>
786
788
/// <param name="HoverDistance">Sets the default distance (in pixels) to look for data to add hover labels (-1 means no cutoff, 0 means no looking for data). This is only a real distance for hovering on point-like objects, like scatter points. For area-like objects (bars, scatter fills, etc) hovering is on inside the area and off outside, but these objects will not supersede hover on point-like objects in case of conflict.</param>
787
789
/// <param name="SpikeDistance">Sets the default distance (in pixels) to look for data to draw spikelines to (-1 means no cutoff, 0 means no looking for data). As with hoverdistance, distance does not apply to area-like objects. In addition, some objects can be hovered on but will not generate spikelines, such as scatter fills.</param>
788
790
/// <param name="Hoverlabel">Sets the style ov hover labels.</param>
@@ -796,6 +798,8 @@ type Chart =
796
798
/// <param name="Computed">Placeholder for exporting automargin-impacting values namely `margin.t`, `margin.b`, `margin.l` and `margin.r` in "full-json" mode.</param>
797
799
/// <param name="Grid">Sets the layout grid for arranging multiple plots</param>
798
800
/// <param name="Calendar">Sets the default calendar system to use for interpreting and displaying dates throughout the plot.</param>
801
+
/// <param name="MinReducedHeight">Minimum height of the plot with margin.automargin applied (in px)</param>
802
+
/// <param name="MinReducedWidth">Minimum width of the plot with margin.automargin applied (in px)</param>
799
803
/// <param name="NewShape">Controls the behavior of newly drawn shapes</param>
800
804
/// <param name="ActiveShape">Sets the styling of the active shape</param>
801
805
/// <param name="HideSources">Determines whether or not a text link citing the data source is placed at the bottom-right cored of the figure. Has only an effect only on graphs that have been generated via forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise).</param>
@@ -828,6 +832,7 @@ type Chart =
828
832
/// <param name="IcicleColorWay">Sets the default icicle slice colors. Defaults to the main `colorway` used for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, see `extendiciclecolors`.</param>
829
833
/// <param name="Annotations">A collection containing all Annotations of this layout. An annotation is a text element that can be placed anywhere in the plot. It can be positioned with respect to relative coordinates in the plot or with respect to the actual data coordinates of the graph. Annotations can be shown with or without an arrow.</param>
830
834
/// <param name="Shapes">A collection containing all Shapes of this layout.</param>
835
+
/// <param name="Selections">A collection containing all Selections of this layout.</param>
831
836
/// <param name="Images">A collection containing all Images of this layout. </param>
832
837
/// <param name="Sliders">A collection containing all Sliders of this layout. </param>
833
838
/// <param name="UpdateMenus">A collection containing all UpdateMenus of this layout. </param>
Copy file name to clipboardExpand all lines: src/Plotly.NET/Layout/Layout.fs
+14
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ type Layout() =
47
47
/// <param name="Computed">Placeholder for exporting automargin-impacting values namely `margin.t`, `margin.b`, `margin.l` and `margin.r` in "full-json" mode.</param>
48
48
/// <param name="Grid">Sets the layout grid for arranging multiple plots</param>
49
49
/// <param name="Calendar">Sets the default calendar system to use for interpreting and displaying dates throughout the plot.</param>
50
+
/// <param name="MinReducedHeight">Minimum height of the plot with margin.automargin applied (in px)</param>
51
+
/// <param name="MinReducedWidth">Minimum width of the plot with margin.automargin applied (in px)</param>
50
52
/// <param name="NewShape">Controls the behavior of newly drawn shapes</param>
51
53
/// <param name="ActiveShape">Sets the styling of the active shape</param>
52
54
/// <param name="HideSources">Determines whether or not a text link citing the data source is placed at the bottom-right cored of the figure. Has only an effect only on graphs that have been generated via forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise).</param>
/// <param name="Computed">Placeholder for exporting automargin-impacting values namely `margin.t`, `margin.b`, `margin.l` and `margin.r` in "full-json" mode.</param>
269
277
/// <param name="Grid">Sets the layout grid for arranging multiple plots</param>
270
278
/// <param name="Calendar">Sets the default calendar system to use for interpreting and displaying dates throughout the plot.</param>
279
+
/// <param name="MinReducedHeight">Minimum height of the plot with margin.automargin applied (in px)</param>
280
+
/// <param name="MinReducedWidth">Minimum width of the plot with margin.automargin applied (in px)</param>
271
281
/// <param name="NewShape">Controls the behavior of newly drawn shapes</param>
272
282
/// <param name="ActiveShape">Sets the styling of the active shape</param>
273
283
/// <param name="HideSources">Determines whether or not a text link citing the data source is placed at the bottom-right cored of the figure. Has only an effect only on graphs that have been generated via forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise).</param>
0 commit comments