Trace2D Type
The most commonly-used kind of subplot is a two-dimensional Cartesian subplot. Traces compatible with these subplots support xaxis and yaxis attributes whose values must refer to corresponding objects in the layout portion of the figure. For example, if xaxis="x", and yaxis="y" (which is the default) then this trace is drawn on the subplot at the intersection of the axes configured under layout.xaxis and layout.yaxis, but if xaxis="x2" and yaxis="y3" then the trace is drawn at the intersection of the axes configured under layout.xaxis2 and layout.yaxis3. Note that attributes such as layout.xaxis and layout.xaxis2 etc do not have to be explicitly defined, in which case default values will be inferred. Multiple traces of different types can be drawn on the same subplot. X- and Y-axes support the type attribute, which enables them to represent continuous values (type="linear", type="log"), temporal values (type="date") or categorical values (type="category", type="multicategory). Axes can also be overlaid on top of one another to create dual-axis or multiple-axis charts. 2-d cartesian subplots lend themselves very well to creating "small multiples" figures, also known as facet or trellis plots. The following trace types are compatible with 2D-cartesian subplots via the xaxis and yaxis attributes: - scatter-like trace types: scatter and scattergl can be used to draw scatter plots, line plots and curves, time-series plots, bubble charts, dot plots and filled areas and also support error bars - bar, funnel, waterfall: bar-like trace types which can also be used to draw timelines and Gantt charts - histogram: an aggregating bar-like trace type - box and violin: 1-dimensional distribution-like trace types - histogram2D and histogram2Dcontour: 2-dimensional distribution-like density trace types - image, heatmap and contour: matrix trace types - ohlc and candlestick: stock-like trace types - splom: multi-dimensional scatter plots which implicitly refer to many 2-d cartesian subplots at once.
Constructors
| Constructor |
Description
|
|
|
Static members
| Static member |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited members
Inherited from
Trace
Instance members
| Instance member |
Description
|
Full Usage:
this.type
Returns: string
|
|
Static members
| Static member |
Description
|
Full Usage:
Trace.getColorAxisAnchor trace
Parameters:
'a
-
The trace to get the color axis anchor from
Returns: SubPlotId
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the color axis anchor of the given trace. If there is no color axis set, returns "coloraxis".
|
Full Usage:
Trace.getColorBar trace
Parameters:
'a
-
The trace to get the cdomain from
Returns: ColorBar
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the colorbar of the given trace. If there is no colorbar set, returns an empty ColorBar object.
|
Full Usage:
Trace.getDomain trace
Parameters:
'a
-
The trace to get the cdomain from
Returns: Domain
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the domain of the given trace. If there is no domain set, returns an empty Domain object.
|
Full Usage:
Trace.getLegendAnchor trace
Parameters:
'a
-
The trace to get the Legend anchor from
Returns: SubPlotId
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the Legend anchor of the given trace. If there is no Legend set, returns "legend".
|
Full Usage:
Trace.getLine trace
Parameters:
'a
-
The trace to get the line from
Returns: Line
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the Line object of the given trace. If there is no line set, returns an empty line object.
|
Full Usage:
Trace.getMarker trace
Parameters:
'a
-
The trace to get the marker from
Returns: Marker
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the Marker object of the given trace. If there is no marker set, returns an empty marker object.
|
Full Usage:
Trace.getStackGroup trace
Parameters:
'a
-
The trace to get the stackgroup from
Returns: string
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the stackgroup of the given trace. If there is no stackgroup set, returns "stackgroup".
|
Full Usage:
Trace.getXError trace
Parameters:
'a
-
The trace to get the x error from
Returns: Error
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the Error object for the x dimension of the given trace. If there is no error set, returns an empty error object.
|
Full Usage:
Trace.getYError trace
Parameters:
'a
-
The trace to get the y error from
Returns: Error
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the Error object for the y dimension of the given trace. If there is no error set, returns an empty error object.
|
Full Usage:
Trace.getZError trace
Parameters:
'a
-
The trace to get the z error from
Returns: Error
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns the Error object for the z dimension of the given trace. If there is no error set, returns an empty error object.
|
Full Usage:
Trace.setColorAxisAnchor colorAxisId
Parameters:
int
-
The new color axis anchor
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns a function that sets the color axis anchor of the given trace.
|
Full Usage:
Trace.setColorBar colorBar
Parameters:
ColorBar
-
The new ColorBar
Returns: 'T -> 'T
Type parameters: 'T (requires :> Plotly.NET.Trace) |
Returns a function that sets the ColorBar of the given trace.
|
Full Usage:
Trace.setDomain domain
Parameters:
Domain
-
The new domain
Returns: 'T -> 'T
Type parameters: 'T (requires :> Plotly.NET.Trace) |
Returns a function that sets the domain of the given trace.
|
Full Usage:
Trace.setLegendAnchor legendId
Parameters:
int
-
The new Legend anchor
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns a function that sets the Legend anchor of the given trace.
|
Full Usage:
Trace.setLine line
Parameters:
Line
-
The new line object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns a function that sets the Line object of the given trace.
|
Full Usage:
Trace.setMarker marker
Parameters:
Marker
-
The new marker object
Returns: 'T -> 'T
Type parameters: 'T (requires :> Plotly.NET.Trace) |
Returns a function that sets the Marker object of the given trace.
|
Full Usage:
Trace.setStackGroup stackgroup
Parameters:
string
-
The new stackgroup
Returns: 'T -> 'T
Type parameters: 'T (requires :> Plotly.NET.Trace) |
Returns a function that sets the stackgroup of the given trace.
|
Full Usage:
Trace.setXError error
Parameters:
Error
-
The new error object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns a function that sets the Error object for the x dimension of the given trace.
|
Full Usage:
Trace.setYError error
Parameters:
Error
-
The new error object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns a function that sets the Error object for the x dimension of the given trace.
|
Full Usage:
Trace.setZError error
Parameters:
Error
-
The new error object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Returns a function that sets the Error object for the x dimension of the given trace.
|
Full Usage:
Trace.tryGetTypedMember propName trace
Parameters:
string
-
The name of the dynamic member to get the value of
trace : Trace
-
The trace to get the dynamic member value from
Returns: 'T option
Type parameters: 'T |
Returns Some(dynamic member value) of the trace object's underlying DynamicObj when a dynamic member with the given name exists, and None otherwise.
|
Full Usage:
Trace.updateColorBar colorBar
Parameters:
ColorBar
-
The updated ColorBar object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given ColorBar object with the one already present on the trace.
|
Full Usage:
Trace.updateDomain domain
Parameters:
Domain
-
The updated Domain object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given Domain object with the one already present on the trace.
|
Full Usage:
Trace.updateLine line
Parameters:
Line
-
The updated Line object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given Line object with the one already present on the trace.
|
Full Usage:
Trace.updateMarker marker
Parameters:
Marker
-
The updated Trace object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given marker object with the one already present on the trace.
|
Full Usage:
Trace.updateXError error
Parameters:
Error
-
The updated Error object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given Error object for the x dimension with the one already present on the trace.
|
Full Usage:
Trace.updateYError error
Parameters:
Error
-
The updated Error object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given Error object for the y dimension with the one already present on the trace.
|
Full Usage:
Trace.updateZError error
Parameters:
Error
-
The updated Error object
Returns: 'a -> 'a
Type parameters: 'a (requires :> Plotly.NET.Trace) |
Combines the given Error object for the z dimension with the one already present on the trace.
|
Plotly.NET