From a776f773d37d76b800c0e1b2d8b42383e2da9e60 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 24 Oct 2023 10:03:15 +0200 Subject: [PATCH] #406: Add `legend` attribute to all traces - this enables setting legend anchors on trace generation - additionally, fix `coloraxis` atribute name on some 3D traces --- src/Plotly.NET/Traces/Trace2D.fs | 45 +++++++++++++++++++++++++++ src/Plotly.NET/Traces/Trace3D.fs | 29 ++++++++++++++--- src/Plotly.NET/Traces/TraceCarpet.fs | 9 ++++++ src/Plotly.NET/Traces/TraceDomain.fs | 30 ++++++++++++++++++ src/Plotly.NET/Traces/TraceGeo.fs | 6 ++++ src/Plotly.NET/Traces/TraceMapbox.fs | 7 +++++ src/Plotly.NET/Traces/TracePolar.fs | 6 ++++ src/Plotly.NET/Traces/TraceSmith.fs | 3 ++ src/Plotly.NET/Traces/TraceTernary.fs | 3 ++ 9 files changed, 134 insertions(+), 4 deletions(-) diff --git a/src/Plotly.NET/Traces/Trace2D.fs b/src/Plotly.NET/Traces/Trace2D.fs index 9a38dd446..f4780e36f 100644 --- a/src/Plotly.NET/Traces/Trace2D.fs +++ b/src/Plotly.NET/Traces/Trace2D.fs @@ -116,6 +116,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -182,6 +183,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -249,6 +251,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -315,6 +318,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -381,6 +385,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -448,6 +453,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt bar "name" Visible |> DynObj.setValueOptBy bar "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt bar "showlegend" + Legend |> DynObj.setValueOptBy bar "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt bar "legendrank" LegendGroup |> DynObj.setValueOpt bar "legendgroup" LegendGroupTitle |> DynObj.setValueOpt bar "legendgrouptitle" @@ -514,6 +520,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -573,6 +580,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -633,6 +641,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt funnel "name" Visible |> DynObj.setValueOptBy funnel "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt funnel "showlegend" + Legend |> DynObj.setValueOptBy funnel "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt funnel "legendrank" LegendGroup |> DynObj.setValueOpt funnel "legendgroup" LegendGroupTitle |> DynObj.setValueOpt funnel "legendgrouptitle" @@ -694,6 +703,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -759,6 +769,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -825,6 +836,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -889,6 +901,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -950,6 +963,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1012,6 +1026,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt histogram "name" Visible |> DynObj.setValueOptBy histogram "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt histogram "showlegend" + Legend |> DynObj.setValueOptBy histogram "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt histogram "legendrank" LegendGroup |> DynObj.setValueOpt histogram "legendgroup" LegendGroupTitle |> DynObj.setValueOpt histogram "legendgrouptitle" @@ -1071,6 +1086,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -1139,6 +1155,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1208,6 +1225,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt boxPlot "name" Visible |> DynObj.setValueOptBy boxPlot "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt boxPlot "showlegend" + Legend |> DynObj.setValueOptBy boxPlot "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt boxPlot "legendrank" LegendGroup |> DynObj.setValueOpt boxPlot "legendgroup" LegendGroupTitle |> DynObj.setValueOpt boxPlot "legendgrouptitle" @@ -1277,6 +1295,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -1332,6 +1351,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1388,6 +1408,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt violin "name" Visible |> DynObj.setValueOptBy violin "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt violin "showlegend" + Legend |> DynObj.setValueOptBy violin "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt violin "legendrank" LegendGroup |> DynObj.setValueOpt violin "legendgroup" LegendGroupTitle |> DynObj.setValueOpt violin "legendgrouptitle" @@ -1442,6 +1463,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -1498,6 +1520,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1555,6 +1578,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt histogram2D "name" Visible |> DynObj.setValueOptBy histogram2D "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt histogram2D "showlegend" + Legend |> DynObj.setValueOptBy histogram2D "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt histogram2D "legendrank" LegendGroup |> DynObj.setValueOpt histogram2D "legendgroup" LegendGroupTitle |> DynObj.setValueOpt histogram2D "legendgrouptitle" @@ -1612,6 +1636,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -1669,6 +1694,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1727,6 +1753,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt histogram2DContour "name" Visible |> DynObj.setValueOptBy histogram2DContour "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt histogram2DContour "showlegend" + Legend |> DynObj.setValueOptBy histogram2DContour "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt histogram2DContour "legendrank" LegendGroup |> DynObj.setValueOpt histogram2DContour "legendgroup" LegendGroupTitle |> DynObj.setValueOpt histogram2DContour "legendgrouptitle" @@ -1786,6 +1813,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -1849,6 +1877,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1913,6 +1942,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt heatmap "name" Visible |> DynObj.setValueOptBy heatmap "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt heatmap "showlegend" + Legend |> DynObj.setValueOptBy heatmap "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt heatmap "legendrank" LegendGroup |> DynObj.setValueOpt heatmap "legendgroup" LegendGroupTitle |> DynObj.setValueOpt heatmap "legendgrouptitle" @@ -1977,6 +2007,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -2010,6 +2041,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -2044,6 +2076,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt image "name" Visible |> DynObj.setValueOptBy image "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt image "showlegend" + Legend |> DynObj.setValueOptBy image "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt image "legendrank" LegendGroup |> DynObj.setValueOpt image "legendgroup" LegendGroupTitle |> DynObj.setValueOpt image "legendgrouptitle" @@ -2079,6 +2112,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -2144,6 +2178,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -2210,6 +2245,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt contour "name" Visible |> DynObj.setValueOptBy contour "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt contour "showlegend" + Legend |> DynObj.setValueOptBy contour "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt contour "legendrank" LegendGroup |> DynObj.setValueOpt contour "legendgroup" LegendGroupTitle |> DynObj.setValueOpt contour "legendgrouptitle" @@ -2276,6 +2312,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -2317,6 +2354,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -2359,6 +2397,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt ohlc "name" Visible |> DynObj.setValueOptBy ohlc "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt ohlc "showlegend" + Legend |> DynObj.setValueOptBy ohlc "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt ohlc "legendrank" LegendGroup |> DynObj.setValueOpt ohlc "legendgroup" LegendGroupTitle |> DynObj.setValueOpt ohlc "legendgrouptitle" @@ -2401,6 +2440,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -2442,6 +2482,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -2484,6 +2525,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -2525,6 +2567,7 @@ type Trace2DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -2558,6 +2601,7 @@ type Trace2DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -2592,6 +2636,7 @@ type Trace2DStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index 131ac4b92..9baa6ae52 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -61,6 +61,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title @@ -107,6 +108,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -155,6 +157,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt scatter "name" Visible |> DynObj.setValueOptBy scatter "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt scatter "showlegend" + Legend |> DynObj.setValueOptBy scatter "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt scatter "legendrank" LegendGroup |> DynObj.setValueOpt scatter "legendgroup" LegendGroupTitle |> DynObj.setValueOpt scatter "legendgrouptitle" @@ -205,6 +208,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -253,6 +257,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -302,6 +307,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt surface "name" Visible |> DynObj.setValueOptBy surface "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt surface "showlegend" + Legend |> DynObj.setValueOptBy surface "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt surface "legendrank" LegendGroup |> DynObj.setValueOpt surface "legendgroup" LegendGroupTitle |> DynObj.setValueOpt surface "legendgrouptitle" @@ -352,6 +358,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -407,6 +414,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -464,6 +472,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt mesh3d "name" Visible |> DynObj.setValueOptBy mesh3d "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt mesh3d "showlegend" + Legend |> DynObj.setValueOptBy mesh3d "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt mesh3d "legendrank" LegendGroup |> DynObj.setValueOpt mesh3d "legendgroup" LegendGroupTitle |> DynObj.setValueOpt mesh3d "legendgrouptitle" @@ -521,6 +530,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -570,6 +580,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -619,6 +630,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt cone "name" Visible |> DynObj.setValueOptBy cone "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt cone "showlegend" + Legend |> DynObj.setValueOptBy cone "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt cone "legendrank" LegendGroup |> DynObj.setValueOpt cone "legendgroup" LegendGroupTitle |> DynObj.setValueOpt cone "legendgrouptitle" @@ -643,7 +655,7 @@ type Trace3DStyle() = Meta |> DynObj.setValueOpt cone "meta" CustomData |> DynObj.setValueOpt cone "customdata" Scene |> DynObj.setValueOptBy cone "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy cone "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setValueOptBy cone "coloraxis" StyleParam.SubPlotId.convert ColorBar |> DynObj.setValueOpt cone "colorbar" AutoColorScale |> DynObj.setValueOpt cone "autocolorscale" ColorScale |> DynObj.setValueOptBy cone "colorscale" StyleParam.Colorscale.convert @@ -669,6 +681,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -718,6 +731,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -767,6 +781,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt streamTube "name" Visible |> DynObj.setValueOptBy streamTube "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt streamTube "showlegend" + Legend |> DynObj.setValueOptBy streamTube "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt streamTube "legendrank" LegendGroup |> DynObj.setValueOpt streamTube "legendgroup" LegendGroupTitle |> DynObj.setValueOpt streamTube "legendgrouptitle" @@ -791,7 +806,7 @@ type Trace3DStyle() = Meta |> DynObj.setValueOpt streamTube "meta" CustomData |> DynObj.setValueOpt streamTube "customdata" Scene |> DynObj.setValueOptBy streamTube "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy streamTube "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setValueOptBy streamTube "coloraxis" StyleParam.SubPlotId.convert ColorBar |> DynObj.setValueOpt streamTube "colorbar" AutoColorScale |> DynObj.setValueOpt streamTube "autocolorscale" ColorScale |> DynObj.setValueOptBy streamTube "colorscale" StyleParam.Colorscale.convert @@ -817,6 +832,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the title of the legendgroup @@ -868,6 +884,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -920,6 +937,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt volume "name" Visible |> DynObj.setValueOptBy volume "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt volume "showlegend" + Legend |> DynObj.setValueOptBy volume "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt volume "legendrank" LegendGroup |> DynObj.setValueOpt volume "legendgroup" LegendGroupTitle |> DynObj.setValueOpt volume "legendgrouptitle" @@ -940,7 +958,7 @@ type Trace3DStyle() = Meta |> DynObj.setValueOpt volume "meta" CustomData |> DynObj.setValueOpt volume "customdata" Scene |> DynObj.setValueOptBy volume "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy volume "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setValueOptBy volume "coloraxis" StyleParam.SubPlotId.convert ColorBar |> DynObj.setValueOpt volume "colorbar" AutoColorScale |> DynObj.setValueOpt volume "autocolorscale" ColorScale |> DynObj.setValueOptBy volume "colorscale" StyleParam.Colorscale.convert @@ -972,6 +990,7 @@ type Trace3DStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the title of the legendgroup @@ -1023,6 +1042,7 @@ type Trace3DStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -1075,6 +1095,7 @@ type Trace3DStyle() = Name |> DynObj.setValueOpt isoSurface "name" Visible |> DynObj.setValueOptBy isoSurface "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt isoSurface "showlegend" + Legend |> DynObj.setValueOptBy isoSurface "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt isoSurface "legendrank" LegendGroup |> DynObj.setValueOpt isoSurface "legendgroup" LegendGroupTitle |> DynObj.setValueOpt isoSurface "legendgrouptitle" @@ -1095,7 +1116,7 @@ type Trace3DStyle() = Meta |> DynObj.setValueOpt isoSurface "meta" CustomData |> DynObj.setValueOpt isoSurface "customdata" Scene |> DynObj.setValueOptBy isoSurface "scene" StyleParam.SubPlotId.convert - ColorAxis |> DynObj.setValueOptBy isoSurface "scene" StyleParam.SubPlotId.convert + ColorAxis |> DynObj.setValueOptBy isoSurface "coloraxis" StyleParam.SubPlotId.convert ColorBar |> DynObj.setValueOpt isoSurface "colorbar" AutoColorScale |> DynObj.setValueOpt isoSurface "autocolorscale" ColorScale |> DynObj.setValueOptBy isoSurface "colorscale" StyleParam.Colorscale.convert diff --git a/src/Plotly.NET/Traces/TraceCarpet.fs b/src/Plotly.NET/Traces/TraceCarpet.fs index 246274916..ff12dc962 100644 --- a/src/Plotly.NET/Traces/TraceCarpet.fs +++ b/src/Plotly.NET/Traces/TraceCarpet.fs @@ -49,6 +49,7 @@ type TraceCarpetStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -81,6 +82,7 @@ type TraceCarpetStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -113,6 +115,7 @@ type TraceCarpetStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "opacity" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -145,6 +148,7 @@ type TraceCarpetStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -187,6 +191,7 @@ type TraceCarpetStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -229,6 +234,7 @@ type TraceCarpetStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -271,6 +277,7 @@ type TraceCarpetStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -317,6 +324,7 @@ type TraceCarpetStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -363,6 +371,7 @@ type TraceCarpetStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" diff --git a/src/Plotly.NET/Traces/TraceDomain.fs b/src/Plotly.NET/Traces/TraceDomain.fs index 5d1468582..2c69cb46f 100644 --- a/src/Plotly.NET/Traces/TraceDomain.fs +++ b/src/Plotly.NET/Traces/TraceDomain.fs @@ -55,6 +55,7 @@ type TraceDomainStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Sets the title of this trace. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -101,6 +102,7 @@ type TraceDomainStyle() = [] ?Title: Title, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -147,6 +149,7 @@ type TraceDomainStyle() = Title |> DynObj.setValueOpt trace "title" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -195,6 +198,7 @@ type TraceDomainStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Sets the title of this trace. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -234,6 +238,7 @@ type TraceDomainStyle() = [] ?Title: Title, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -273,6 +278,7 @@ type TraceDomainStyle() = Title |> DynObj.setValueOpt trace "title" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -312,6 +318,7 @@ type TraceDomainStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Sets the title of this trace. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -355,6 +362,7 @@ type TraceDomainStyle() = [] ?Title: Title, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendGroup: string, [] ?LegendRank: int, [] ?LegendGroupTitle: Title, @@ -398,6 +406,7 @@ type TraceDomainStyle() = Title |> DynObj.setValueOpt trace "title" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -442,6 +451,7 @@ type TraceDomainStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Sets the title of this trace. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -485,6 +495,7 @@ type TraceDomainStyle() = [] ?Title: Title, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -528,6 +539,7 @@ type TraceDomainStyle() = Title |> DynObj.setValueOpt trace "title" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -570,6 +582,7 @@ type TraceDomainStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -590,6 +603,7 @@ type TraceDomainStyle() = ( [] ?Name: string, [] ?Visible: StyleParam.Visible, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -611,6 +625,7 @@ type TraceDomainStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -635,6 +650,7 @@ type TraceDomainStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. /// The number of observations represented by each state. Defaults to 1 so that each state represents one observation @@ -656,6 +672,7 @@ type TraceDomainStyle() = ( [] ?Name: string, [] ?Visible: StyleParam.Visible, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, [] ?Counts: int, @@ -678,6 +695,7 @@ type TraceDomainStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" Counts |> DynObj.setValueOpt trace "counts" @@ -702,6 +720,7 @@ type TraceDomainStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -724,6 +743,7 @@ type TraceDomainStyle() = ( [] ?Name: string, [] ?Visible: StyleParam.Visible, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -747,6 +767,7 @@ type TraceDomainStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -773,6 +794,7 @@ type TraceDomainStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. @@ -791,6 +813,7 @@ type TraceDomainStyle() = ( [] ?Name: string, [] ?Visible: StyleParam.Visible, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: bool, [] ?LegendGroupTitle: Title, [] ?Ids: seq<#IConvertible>, @@ -810,6 +833,7 @@ type TraceDomainStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" Ids |> DynObj.setValueOpt trace "ids" @@ -832,6 +856,7 @@ type TraceDomainStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Sets the title of this trace. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. @@ -850,6 +875,7 @@ type TraceDomainStyle() = [] ?Name: string, [] ?Title: string, [] ?Visible: StyleParam.Visible, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroupTitle: Title, [] ?Mode: StyleParam.IndicatorMode, @@ -869,6 +895,7 @@ type TraceDomainStyle() = Name |> DynObj.setValueOpt trace "name" Title |> DynObj.setValueOpt trace "title" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" Mode |> DynObj.setValueOptBy trace "mode" StyleParam.IndicatorMode.convert @@ -890,6 +917,7 @@ type TraceDomainStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the opacity of the trace. @@ -931,6 +959,7 @@ type TraceDomainStyle() = ( [] ?Name: string, [] ?Visible: StyleParam.Visible, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroupTitle: Title, [] ?Opacity: float, @@ -973,6 +1002,7 @@ type TraceDomainStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" Opacity |> DynObj.setValueOpt trace "opacity" diff --git a/src/Plotly.NET/Traces/TraceGeo.fs b/src/Plotly.NET/Traces/TraceGeo.fs index 3e7a37f3f..b25d308d0 100644 --- a/src/Plotly.NET/Traces/TraceGeo.fs +++ b/src/Plotly.NET/Traces/TraceGeo.fs @@ -51,6 +51,7 @@ type TraceGeoStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -91,6 +92,7 @@ type TraceGeoStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -132,6 +134,7 @@ type TraceGeoStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -172,6 +175,7 @@ type TraceGeoStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -215,6 +219,7 @@ type TraceGeoStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -258,6 +263,7 @@ type TraceGeoStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" diff --git a/src/Plotly.NET/Traces/TraceMapbox.fs b/src/Plotly.NET/Traces/TraceMapbox.fs index 09b7ce5f6..2ac9dcf50 100644 --- a/src/Plotly.NET/Traces/TraceMapbox.fs +++ b/src/Plotly.NET/Traces/TraceMapbox.fs @@ -56,6 +56,7 @@ type TraceMapboxStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -97,6 +98,7 @@ type TraceMapboxStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -180,6 +182,7 @@ type TraceMapboxStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -220,6 +223,7 @@ type TraceMapboxStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -303,6 +307,7 @@ type TraceMapboxStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -341,6 +346,7 @@ type TraceMapboxStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -380,6 +386,7 @@ type TraceMapboxStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" diff --git a/src/Plotly.NET/Traces/TracePolar.fs b/src/Plotly.NET/Traces/TracePolar.fs index b412ce9d0..1a78f1e2a 100644 --- a/src/Plotly.NET/Traces/TracePolar.fs +++ b/src/Plotly.NET/Traces/TracePolar.fs @@ -46,6 +46,7 @@ type TracePolarStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title @@ -91,6 +92,7 @@ type TracePolarStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -137,6 +139,7 @@ type TracePolarStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" @@ -184,6 +187,7 @@ type TracePolarStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title @@ -222,6 +226,7 @@ type TracePolarStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -261,6 +266,7 @@ type TracePolarStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" diff --git a/src/Plotly.NET/Traces/TraceSmith.fs b/src/Plotly.NET/Traces/TraceSmith.fs index a9b9d9e38..5a1e452d9 100644 --- a/src/Plotly.NET/Traces/TraceSmith.fs +++ b/src/Plotly.NET/Traces/TraceSmith.fs @@ -29,6 +29,7 @@ type TraceSmithStyle() = /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). /// Determines whether or not an item corresponding to this trace is shown in the legend. + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. /// Sets the legend group title for this trace. @@ -69,6 +70,7 @@ type TraceSmithStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -110,6 +112,7 @@ type TraceSmithStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle" diff --git a/src/Plotly.NET/Traces/TraceTernary.fs b/src/Plotly.NET/Traces/TraceTernary.fs index 03a65e273..793df9ea6 100644 --- a/src/Plotly.NET/Traces/TraceTernary.fs +++ b/src/Plotly.NET/Traces/TraceTernary.fs @@ -28,6 +28,7 @@ type TraceTernaryStyle() = /// /// Sets the trace name. The trace name appear as the legend item and on hover. /// Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). + /// Sets the reference to a legend to show this trace in. References to these legends are "legend", "legend2", "legend3", etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc. /// Determines whether or not an item corresponding to this trace is shown in the legend. /// Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `"reversed" `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. /// Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. @@ -71,6 +72,7 @@ type TraceTernaryStyle() = [] ?Name: string, [] ?Visible: StyleParam.Visible, [] ?ShowLegend: bool, + [] ?Legend: StyleParam.SubPlotId, [] ?LegendRank: int, [] ?LegendGroup: string, [] ?LegendGroupTitle: Title, @@ -114,6 +116,7 @@ type TraceTernaryStyle() = Name |> DynObj.setValueOpt trace "name" Visible |> DynObj.setValueOptBy trace "visible" StyleParam.Visible.convert ShowLegend |> DynObj.setValueOpt trace "showlegend" + Legend |> DynObj.setValueOptBy trace "legend" StyleParam.SubPlotId.convert LegendRank |> DynObj.setValueOpt trace "legendrank" LegendGroup |> DynObj.setValueOpt trace "legendgroup" LegendGroupTitle |> DynObj.setValueOpt trace "legendgrouptitle"