Number
public struct Number : Encodable
Undocumented
-
Sets the 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 valueFormat: String? -
Set the font used to display main number
Declaration
Swift
public var font: Font? -
Sets a prefix appearing before the number.
Declaration
Swift
public var prefix: String? -
Sets a suffix appearing next to the number.
Declaration
Swift
public var suffix: String? -
Creates
Numberobject with specified properties.Declaration
Swift
public init(valueFormat: String? = nil, font: Font? = nil, prefix: String? = nil, suffix: String? = nil)Parameters
valueFormatSets the value formatting rule using d3 formatting mini-language which is similar to those of Python.
fontSet the font used to display main number
prefixSets a prefix appearing before the number.
suffixSets a suffix appearing next to the number.
View on GitHub
Install in Dash
Number Structure Reference