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 Number object with specified properties.

    Declaration

    Swift

    public init(valueFormat: String? = nil, font: Font? = nil, prefix: String? = nil, suffix:
            String? = nil)

    Parameters

    valueFormat

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

    font

    Set the font used to display main number

    prefix

    Sets a prefix appearing before the number.

    suffix

    Sets a suffix appearing next to the number.