View as Markdown

API reference: @salmonui/charts/chart

ChartColorRangeinterface

import type { ChartColorRange } from '@salmonui/charts/chart';
interface ChartColorRange {
    readonly from: number;
    readonly to: number;
    readonly colors: readonly string[];
    readonly label?: string | undefined;
}

A y value range with its data colors: one color, or several spread across the range.

ChartColorRange members (4)
NameSignatureDescription
fromreadonly from: number;
toreadonly to: number;
colorsreadonly colors: readonly string[];
labeloptionalreadonly label?: string | undefined;