Cells
public struct Cells<CellData> : Encodable where CellData : Plotable
Undocumented
-
Cell values.
values[m][n]represents the value of thenth point in columnm, therefore thevalues[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
textwithin the box.Has an effect only if
textspans two or more lines (i.e.textcontains 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 moreDeclaration
Swift
public struct Fill : Encodable -
Undocumented
Declaration
Swift
public var fill: Fill? -
Undocumented
Declaration
Swift
public var font: VariableFont? -
Creates
Cellsobject 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
valuesCell values.
formatSets the cell value formatting rule using d3 formatting mini-language which is similar to those of Python.
prefixPrefix for cell values.
suffixSuffix for cell values.
heightThe height of cells.
alignSets the horizontal alignment of the
textwithin the box.linefillfont -
Encodes the object in a format compatible with Plotly.
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Install in Dash
Cells Structure Reference