API REFERENCE
addParty
Item-only — add a party (datum) to the parliament.
Definition
addParty(datum: ItemChartDatum, opts?: { insertAt?: number }): Promise<number>| Arguments | Type | Required |
|---|---|---|
datum | ItemChartDatum | Required |
opts | { insertAt?: number } | Optional |
Return type: Promise<number>. Call the method after element registration and await its Promise result.
- ItemChartDatum
Type definition