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
/// <param name="Title">Sets the title of the layout.</param>
744
752
/// <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>
745
-
/// <param name="Legend">Sets the legend styles of the layout.</param>
746
753
/// <param name="Margin">Sets the margins around the layout.</param>
747
754
/// <param name="AutoSize">Determines whether or not a layout width or height that has been left undefined by the user is initialized on each relayout. Note that, regardless of this attribute, an undefined layout width or height is always initialized on the first call to plot.</param>
748
755
/// <param name="Width">Sets the plot's width (in px).</param>
Id |> Option.defaultValue 1|> StyleParam.SubPlotId.Legend
2535
+
2536
+
fun(ch: GenericChart)->
2537
+
ch |> Chart.setLegend (legend, id, Combine =true)
2521
2538
2522
2539
/// <summary>
2523
-
/// Sets the given Legend styles on the input chart's Legend.
2540
+
/// Sets the given Legend styles on the input chart's Legend, optionally passing a target Legend id.
2524
2541
///
2525
2542
/// If there is already a Legend set , the styles are applied to it. If there is no Legend present, a new Legend object with the given styles will be set.
2526
2543
/// </summary>
@@ -2542,10 +2559,12 @@ type Chart =
2542
2559
/// <param name="TraceOrder">Determines the order at which the legend items are displayed. If "normal", the items are displayed top-to-bottom in the same order as the input data. If "reversed", the items are displayed in the opposite order as "normal". If "grouped", the items are displayed in groups (when a trace `legendgroup` is provided). if "grouped+reversed", the items are displayed in the opposite order as "grouped".</param>
2543
2560
/// <param name="UIRevision">Controls persistence of legend-driven changes in trace and pie label visibility. Defaults to `layout.uirevision`.</param>
2544
2561
/// <param name="VerticalAlign">Sets the vertical alignment of the symbols with respect to their associated text.</param>
2562
+
/// <param name="Visible">Determines whether or not this legend is visible.</param>
2545
2563
/// <param name="X">Sets the x position (in normalized coordinates) of the legend. Defaults to "1.02" for vertical legends and defaults to "0" for horizontal legends.</param>
2546
2564
/// <param name="XAnchor">Sets the legend's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the legend. Value "auto" anchors legends to the right for `x` values greater than or equal to 2/3, anchors legends to the left for `x` values less than or equal to 1/3 and anchors legends with respect to their center otherwise.</param>
2547
2565
/// <param name="Y">Sets the y position (in normalized coordinates) of the legend. Defaults to "1" for vertical legends, defaults to "-0.1" for horizontal legends on graphs w/o range sliders and defaults to "1.1" for horizontal legends on graph with one or multiple range sliders.</param>
2548
2566
/// <param name="YAnchor">Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. Value "auto" anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise.</param>
2567
+
/// <param name="Id">The target Legend id on which the styles should be applied. Default is 1.</param>
Copy file name to clipboardExpand all lines: src/Plotly.NET/Layout/Layout.fs
+44-23Lines changed: 44 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ type Layout() =
15
15
/// </summary>
16
16
/// <param name="Title">Sets the title of the layout.</param>
17
17
/// <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>
18
-
/// <param name="Legend">Sets the legend styles of the layout.</param>
19
18
/// <param name="Margin">Sets the margins around the layout.</param>
20
19
/// <param name="AutoSize">Determines whether or not a layout width or height that has been left undefined by the user is initialized on each relayout. Note that, regardless of this attribute, an undefined layout width or height is always initialized on the first call to plot.</param>
21
20
/// <param name="Width">Sets the plot's width (in px).</param>
/// <param name="Title">Sets the title of the layout.</param>
252
249
/// <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>
253
-
/// <param name="Legend">Sets the legend styles of the layout.</param>
254
250
/// <param name="Margin">Sets the margins around the layout.</param>
255
251
/// <param name="AutoSize">Determines whether or not a layout width or height that has been left undefined by the user is initialized on each relayout. Note that, regardless of this attribute, an undefined layout width or height is always initialized on the first call to plot.</param>
256
252
/// <param name="Width">Sets the plot's width (in px).</param>
0 commit comments