@@ -17,11 +17,8 @@ type TraceTernary(traceTypeName) =
1717type TraceTernaryStyle () =
1818
1919 static member SetTernary ( [<Optional; DefaultParameterValue( null ) >] ? TernaryId : StyleParam.SubPlotId ) =
20- ( fun ( trace : TraceTernary ) ->
21-
22- TernaryId |> DynObj.setOptionalPropertyBy trace " subplot" StyleParam.SubPlotId.toString
23-
24- trace)
20+ fun ( trace : TraceTernary ) ->
21+ trace |> DynObj.withOptionalPropertyBy " subplot" TernaryId StyleParam.SubPlotId.toString
2522
2623 /// <summary>
2724 /// Create a function that applies the styles of a ternary scatter plot to a Trace object
@@ -113,44 +110,40 @@ type TraceTernaryStyle() =
113110 ) =
114111 fun ( trace : #Trace ) ->
115112
116- Name |> DynObj.setOptionalProperty trace " name"
117- Visible |> DynObj.setOptionalPropertyBy trace " visible" StyleParam.Visible.convert
118- ShowLegend |> DynObj.setOptionalProperty trace " showlegend"
119- Legend |> DynObj.setOptionalPropertyBy trace " legend" StyleParam.SubPlotId.convert
120- LegendRank |> DynObj.setOptionalProperty trace " legendrank"
121- LegendGroup |> DynObj.setOptionalProperty trace " legendgroup"
122- LegendGroupTitle |> DynObj.setOptionalProperty trace " legendgrouptitle"
123- Opacity |> DynObj.setOptionalProperty trace " opacity"
124- Mode |> DynObj.setOptionalPropertyBy trace " mode" StyleParam.Mode.convert
125- Ids |> DynObj.setOptionalProperty trace " ids"
126- A |> DynObj.setOptionalProperty trace " a"
127- B |> DynObj.setOptionalProperty trace " b"
128- C |> DynObj.setOptionalProperty trace " c"
129- ( Text, MultiText) |> DynObj.setOptionalSingleOrMultiProperty trace " text"
130-
131- ( TextPosition, MultiTextPosition)
132- |> DynObj.setOptionalSingleOrMultiPropertyBy trace " textposition" StyleParam.TextPosition.convert
133-
134- ( TextTemplate, MultiTextTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace " texttemplate"
135- ( HoverText, MultiHoverText) |> DynObj.setOptionalSingleOrMultiProperty trace " hovertext"
136- HoverInfo |> DynObj.setOptionalPropertyBy trace " hoverinfo" StyleParam.HoverInfo.convert
137- ( HoverTemplate, MultiHoverTemplate) |> DynObj.setOptionalSingleOrMultiProperty trace " hovertemplate"
138- Meta |> DynObj.setOptionalProperty trace " meta"
139- CustomData |> DynObj.setOptionalProperty trace " customdata"
140- SubPlot |> DynObj.setOptionalPropertyBy trace " subplot" StyleParam.SubPlotId.convert
141- Marker |> DynObj.setOptionalProperty trace " marker"
142- Line |> DynObj.setOptionalProperty trace " line"
143- TextFont |> DynObj.setOptionalProperty trace " textfont"
144- SelectedPoints |> DynObj.setOptionalProperty trace " selectedpoints"
145- Selected |> DynObj.setOptionalProperty trace " selected"
146- Unselected |> DynObj.setOptionalProperty trace " unselected"
147- ClipOnAxis |> DynObj.setOptionalProperty trace " cliponaxis"
148- ConnectGaps |> DynObj.setOptionalProperty trace " connectgaps"
149- Fill |> DynObj.setOptionalPropertyBy trace " fill" StyleParam.Fill.convert
150- FillColor |> DynObj.setOptionalProperty trace " fillcolor"
151- HoverLabel |> DynObj.setOptionalProperty trace " hoverlabel"
152- HoverOn |> DynObj.setOptionalPropertyBy trace " hoveron" StyleParam.HoverOn.convert
153- Sum |> DynObj.setOptionalProperty trace " sum"
154- UIRevision |> DynObj.setOptionalProperty trace " uirevision"
155-
156113 trace
114+ |> DynObj.withOptionalProperty " name" Name
115+ |> DynObj.withOptionalPropertyBy " visible" Visible StyleParam.Visible.convert
116+ |> DynObj.withOptionalProperty " showlegend" ShowLegend
117+ |> DynObj.withOptionalPropertyBy " legend" Legend StyleParam.SubPlotId.convert
118+ |> DynObj.withOptionalProperty " legendrank" LegendRank
119+ |> DynObj.withOptionalProperty " legendgroup" LegendGroup
120+ |> DynObj.withOptionalProperty " legendgrouptitle" LegendGroupTitle
121+ |> DynObj.withOptionalProperty " opacity" Opacity
122+ |> DynObj.withOptionalPropertyBy " mode" Mode StyleParam.Mode.convert
123+ |> DynObj.withOptionalProperty " ids" Ids
124+ |> DynObj.withOptionalProperty " a" A
125+ |> DynObj.withOptionalProperty " b" B
126+ |> DynObj.withOptionalProperty " c" C
127+ |> DynObj.withOptionalSingleOrMultiProperty " text" ( Text, MultiText)
128+ |> DynObj.withOptionalSingleOrMultiPropertyBy " textposition" ( TextPosition, MultiTextPosition) StyleParam.TextPosition.convert
129+ |> DynObj.withOptionalSingleOrMultiProperty " texttemplate" ( TextTemplate, MultiTextTemplate)
130+ |> DynObj.withOptionalSingleOrMultiProperty " hovertext" ( HoverText, MultiHoverText)
131+ |> DynObj.withOptionalPropertyBy " hoverinfo" HoverInfo StyleParam.HoverInfo.convert
132+ |> DynObj.withOptionalSingleOrMultiProperty " hovertemplate" ( HoverTemplate, MultiHoverTemplate)
133+ |> DynObj.withOptionalProperty " meta" Meta
134+ |> DynObj.withOptionalProperty " customdata" CustomData
135+ |> DynObj.withOptionalPropertyBy " subplot" SubPlot StyleParam.SubPlotId.convert
136+ |> DynObj.withOptionalProperty " marker" Marker
137+ |> DynObj.withOptionalProperty " line" Line
138+ |> DynObj.withOptionalProperty " textfont" TextFont
139+ |> DynObj.withOptionalProperty " selectedpoints" SelectedPoints
140+ |> DynObj.withOptionalProperty " selected" Selected
141+ |> DynObj.withOptionalProperty " unselected" Unselected
142+ |> DynObj.withOptionalProperty " cliponaxis" ClipOnAxis
143+ |> DynObj.withOptionalProperty " connectgaps" ConnectGaps
144+ |> DynObj.withOptionalPropertyBy " fill" Fill StyleParam.Fill.convert
145+ |> DynObj.withOptionalProperty " fillcolor" FillColor
146+ |> DynObj.withOptionalProperty " hoverlabel" HoverLabel
147+ |> DynObj.withOptionalPropertyBy " hoveron" HoverOn StyleParam.HoverOn.convert
148+ |> DynObj.withOptionalProperty " sum" Sum
149+ |> DynObj.withOptionalProperty " uirevision" UIRevision
0 commit comments