Basic Traces

  • The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.

    The data visualized as scatter point or lines is set in x and y. Text (appearing either on the chart or on hover only) is via text. Bubble charts are achieved by setting marker.size and/or marker.color to numerical arrays.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Scatter<XData, YData> : Trace, XYSubplot where XData : Plotable, YData : Plotable
  • The data visualized as scatter point or lines is set in x and y using the WebGL plotting engine.

    Bubble charts are achieved by setting marker.size and/or marker.color to a numerical arrays.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct ScatterGL<XData, YData> : Trace, XYSubplot where XData : Plotable, YData : Plotable
  • Bar

    The data visualized by the span of the bars is set in y if orientation is set th v (the default) and the labels are set in x.

    By setting orientation to h, the roles are interchanged.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Bar<XData, YData> : Trace, XYSubplot where XData : Plotable, YData : Plotable
  • Pie

    A data visualized by the sectors of the pie is set in values.

    The sector labels are set in labels. The sector colors are set in marker.colors

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Pie<LabelsData, ValuesData> : Trace, DomainSubplot where LabelsData : Plotable, ValuesData : Plotable
  • Visualize hierarchal data spanning outward radially from root to leaves.

    The sunburst sectors are determined by the entries in labels or ids and in parents.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Sunburst<ValuesData> : Trace, DomainSubplot where ValuesData : Plotable
  • Sankey plots for network flow data analysis.

    The nodes are specified in nodes and the links between sources and targets in links. The colors are set in nodes[i].color and links[i].color, otherwise defaults are used.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Sankey : Trace, DomainSubplot
  • Visualize hierarchal data from leaves (and/or outer branches) towards root with rectangles.

    The treemap sectors are determined by the entries in labels or ids and in parents.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Treemap<ValuesData> : Trace, DomainSubplot where ValuesData : Plotable
  • Display an image, i.e.

    data on a 2D regular raster. By default, when an image is displayed in a subplot, its y axis will be reversed (ie. autorange: 'reversed'), constrained to the domain (ie. constrain: 'domain') and it will have the same scale as its x axis (ie. scaleanchor: 'x,) in order for pixels to be rendered as squares.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Image<ZData> : Trace, XYSubplot where ZData : Plotable
  • Table view for detailed data viewing.

    The data are arranged in a grid of rows and columns. Most styling can be specified for columns, rows or individual cells. Table is using a column-major order, ie. the grid is represented as a vector of column vectors.

    See also

    Documentation for Python, JavaScript or R
    See more

    Declaration

    Swift

    public struct Table<CellData> : Trace, DomainSubplot where CellData : Plotable