API REFERENCE

addParty

Item-only — add a party (datum) to the parliament.

Definition

typescript
addParty(datum: ItemChartDatum, opts?: { insertAt?: number }): Promise<number>
ArgumentsTypeRequired
datumItemChartDatumRequired
opts{ insertAt?: number }Optional

Return type: Promise<number>. Call the method after element registration and await its Promise result.