View as Markdown

API reference: @salmonui/charts/pie-chart

AccumulationLegendOptionsinterface

import type { AccumulationLegendOptions } from '@salmonui/charts/pie-chart';
interface AccumulationLegendOptions {
    readonly position?: 'top' | 'bottom' | 'start' | 'end' | undefined;
    readonly title?: string | undefined;
    readonly toggle?: boolean | undefined;
}
AccumulationLegendOptions members (3)
NameSignatureDescription
positionoptionalreadonly position?: 'top' | 'bottom' | 'start' | 'end' | undefined;
titleoptionalreadonly title?: string | undefined;
toggleoptionalreadonly toggle?: boolean | undefined;

Clicking a legend item hides its points (hiddenPoints). Default true.