One immutable-by-convention rendering input, refreshed on chart-change events.
Members 2
Declaration
View full TypeScript declaration
export interface ChartView {
Referenced by
Workspace packages depending on @sheetwrite/charts
@sheetwrite/docs-startdependency
Public exports naming ChartView
interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: { xTitle?: string; yTitle?: string };
legend?: "none" | "top" | "right" | "bottom" | "left";
anchor: ChartAnchor;
series: ChartSeries[];
}interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: { xTitle?: string; yTitle?: string };
legend?: "none" | "top" | "right" | "bottom" | "left";
anchor: ChartAnchor;
series: ChartSeries[];
}interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: {
xTitle?: string;
yTitle?: string;
};
legend?:
| "none"
| "top"
| "right"
| "bottom"
| "left";
anchor: ChartAnchor;
series: ChartSeries[];
}Persisted chart definition; IDs are unique within the owning sheet.API reference →interface ChartSeriesView {
name: string;
values: Array<number | null>;
categories: Array<string | number | boolean | null>;
numberFormats: Array<string | null>;
categoryFormats: Array<string | null>;
numberLocale: string | null;
truncated: boolean;
referenceError: boolean;
}interface ChartSeriesView {
name: string;
values: Array<number | null>;
categories: Array<string | number | boolean | null>;
numberFormats: Array<string | null>;
categoryFormats: Array<string | null>;
numberLocale: string | null;
truncated: boolean;
referenceError: boolean;
}interface ChartSeriesView {
name: string;
values: Array<number | null>;
categories: Array<
| string
| number
| boolean
| null
>;
numberFormats: Array<
string | null
>;
categoryFormats: Array<
string | null
>;
numberLocale: string | null;
truncated: boolean;
referenceError: boolean;
}Resolved plain data; the renderer does not read cells. Arrays follow source cells in row-major order.API reference →