Function symbol

  • Constructs a new symbol generator of the specified type and size. If not specified, type defaults to a circle, and size defaults to 64.

    The first generic corresponds to the "this" context within which the symbol generator is invoked. The second generic corresponds to the data type of the datum underlying the symbol.

    Type Parameters

    • Datum = any

    Parameters

    • Optional type: SymbolType | ((this, d, ...args) => SymbolType)

      The specified type.

    • Optional size: number | ((this, d, ...args) => number)

      The specified size.

    Returns Symbol<any, Datum>

  • Constructs a new symbol generator of the specified type and size. If not specified, type defaults to a circle, and size defaults to 64.

    The first generic corresponds to the "this" context within which the symbol generator is invoked. The second generic corresponds to the data type of the datum underlying the symbol.

    Type Parameters

    • This

    • Datum

    Parameters

    • Optional type: SymbolType | ((this, d, ...args) => SymbolType)

      The specified type.

    • Optional size: number | ((this, d, ...args) => number)

      The specified size.

    Returns Symbol<This, Datum>