Cells

public struct Cells<CellData> : Encodable where CellData : Plotable

Undocumented

  • Cell values.

    values[m][n] represents the value of the nth point in column m, therefore the values[m] vector length for all columns must be the same (longer vectors will be truncated). Each value must be a finite number or a string.

    Declaration

    Swift

    public var values: CellData?
  • Sets the cell value formatting rule using d3 formatting mini-language which is similar to those of Python.

    See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format

    Declaration

    Swift

    public var format: Data<String>?
  • Prefix for cell values.

    Declaration

    Swift

    public var prefix: Data<String>?
  • Suffix for cell values.

    Declaration

    Swift

    public var suffix: Data<String>?
  • The height of cells.

    Declaration

    Swift

    public var height: Double?
  • Sets the horizontal alignment of the text within the box.

    Has an effect only if text spans two or more lines (i.e. text contains one or more
    HTML tags) or if an explicit width is set to override the text width.

    Declaration

    Swift

    public var align: HorizontalAlign?
  • Undocumented

    Declaration

    Swift

    public var line: VariableLine?
  • Undocumented

    See more

    Declaration

    Swift

    public struct Fill : Encodable
  • Undocumented

    Declaration

    Swift

    public var fill: Fill?
  • Undocumented

    Declaration

    Swift

    public var font: VariableFont?
  • Creates Cells object with specified properties.

    Declaration

    Swift

    public init(values: CellData? = nil, format: Data<String>? = nil, prefix: Data<String>? = nil,
            suffix: Data<String>? = nil, height: Double? = nil, align: HorizontalAlign? = nil, line:
            VariableLine? = nil, fill: Fill? = nil, font: VariableFont? = nil)

    Parameters

    values

    Cell values.

    format

    Sets the cell value formatting rule using d3 formatting mini-language which is similar to those of Python.

    prefix

    Prefix for cell values.

    suffix

    Suffix for cell values.

    height

    The height of cells.

    align

    Sets the horizontal alignment of the text within the box.

    line

    fill

    font

  • Encodes the object in a format compatible with Plotly.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws