View as Markdown

API reference: @salmonui/pivot-table

PivotChartPointinterface

import type { PivotChartPoint } from '@salmonui/pivot-table';
interface PivotChartPoint {
    readonly rowIndex: number;
    readonly columnIndex: number;
    readonly rowKey: string;
    readonly columnKey: string;
    readonly categoryPath: PivotMemberPath;
    readonly categoryExpandable: boolean;
    readonly parentPath: PivotMemberPath | null;
}

Where a chart point comes from (drill down, drill through).

PivotChartPoint members (7)
NameSignatureDescription
rowIndexreadonly rowIndex: number;
columnIndexreadonly columnIndex: number;
rowKeyreadonly rowKey: string;
columnKeyreadonly columnKey: string;
categoryPathreadonly categoryPath: PivotMemberPath;

Member path of the category (['rows', ...] or ['columns', ...]), for pivot.expand(path).

categoryExpandablereadonly categoryExpandable: boolean;
parentPathreadonly parentPath: PivotMemberPath | null;

Member path of the category's parent (drill up, pivot.collapse(path)), or null for a top-level member.