Function pie

  • Constructs a new pie generator with the default settings.

    Ensure that the accessors used with the pie generator correspond to the arguments passed into them, or set them to constants as appropriate.

    Returns Pie<any, number | {
        valueOf(): number;
    }>

  • Constructs a new pie generator with the default settings.

    Ensure that the accessors used with the pie generator correspond to the arguments passed into them, or set them to constants as appropriate.

    The generic refers to the data type of an element in the input array passed into the Pie generator.

    Type Parameters

    • Datum

    Returns Pie<any, Datum>

  • Constructs a new pie generator with the default settings.

    Ensure that the accessors used with the pie generator correspond to the arguments passed into them, or set them to constants as appropriate.

    The first generic corresponds to the type of the "this" context within which the pie generator and its accessor functions will be invoked.

    The second generic refers to the data type of an element in the input array passed into the Pie generator.

    Type Parameters

    • This

    • Datum

    Returns Pie<This, Datum>