API REFERENCE

WordCloudDatum

The WordCloudDatum type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export type WordCloudDatum =
  | readonly [name: string, weight: number]
  | {
      readonly name: string;
      readonly weight: number;
      readonly color?: string;
      readonly rotation?: number;
      readonly visible?: boolean;
      readonly id?: string | number;
    };