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

Trace2D(traceTypeName)

Full Usage: Trace2D(traceTypeName)

Parameters:
    traceTypeName : string

Returns: Trace2D
traceTypeName : string
Returns: Trace2D

Static members

Static member Description

Trace2D.initBar applyStyle

Full Usage: Trace2D.initBar applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "bar" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initBoxPlot applyStyle

Full Usage: Trace2D.initBoxPlot applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "box" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initCandlestick applyStyle

Full Usage: Trace2D.initCandlestick applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "candlestick" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initContour applyStyle

Full Usage: Trace2D.initContour applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "contour" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initFunnel applyStyle

Full Usage: Trace2D.initFunnel applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "funnel" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initHeatmap applyStyle

Full Usage: Trace2D.initHeatmap applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "heatmap" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initHeatmapGL applyStyle

Full Usage: Trace2D.initHeatmapGL applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "heatmapgl" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initHistogram applyStyle

Full Usage: Trace2D.initHistogram applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "histogram" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initHistogram2D applyStyle

Full Usage: Trace2D.initHistogram2D applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "histogram2D" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initHistogram2DContour applyStyle

Full Usage: Trace2D.initHistogram2DContour applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "histogram2Dcontour" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initImage applyStyle

Full Usage: Trace2D.initImage applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "image" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initOHLC applyStyle

Full Usage: Trace2D.initOHLC applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "ohlc" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initScatter applyStyle

Full Usage: Trace2D.initScatter applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "scatter" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initScatterGL applyStyle

Full Usage: Trace2D.initScatterGL applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "scattergl" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initSplom applyStyle

Full Usage: Trace2D.initSplom applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "SPLOM" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initViolin applyStyle

Full Usage: Trace2D.initViolin applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "violin" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D

Trace2D.initWaterfall applyStyle

Full Usage: Trace2D.initWaterfall applyStyle

Parameters:
Returns: Trace2D

initializes a trace of type "waterfall" applying the given trace styling function

applyStyle : Trace2D -> Trace2D
Returns: Trace2D