View as Markdown

API reference: @salmonui/charts/chart

ChartLegendIteminterface

import type { ChartLegendItem } from '@salmonui/charts/chart';
interface ChartLegendItem {
    readonly id: string;
    readonly label: string;
    readonly color: string;
    readonly hidden: boolean;
    readonly seriesId?: string | undefined;
    readonly index?: number | undefined;
}
ChartLegendItem members (6)
NameSignatureDescription
idreadonly id: string;
labelreadonly label: string;
colorreadonly color: string;
hiddenreadonly hidden: boolean;
seriesIdoptionalreadonly seriesId?: string | undefined;

The series of a series or point item.

indexoptionalreadonly index?: number | undefined;