Skip to content

ChartDefinition@sheetwrite/core

On this page

Persisted chart definition; IDs are unique within the owning sheet.

Members 7

id
id: string;
kind
kind: ChartKind;
title Text above the chart; undefined shows no title.
title?: string;
axes Axis titles; undefined shows no axis titles.
axes?: { xTitle?: string; yTitle?: string };
legend Legend position; undefined lets the renderer use its default position.
legend?: "none" | "top" | "right" | "bottom" | "left";
anchor
anchor: ChartAnchor;
series
series: ChartSeries[];

Declaration

View full TypeScript declaration
export interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: {
xTitle?: string;
yTitle?: string;
};
legend?: "none" | "top" | "right" | "bottom" | "left";
anchor: ChartAnchor;
series: ChartSeries[];
}

Referenced by

Workspace packages depending on @sheetwrite/core

  • @sheetwrite/benchdependency
  • @sheetwrite/chartsdependency
  • @sheetwrite/docs-startdependency
  • @sheetwrite/reactdependency
  • @sheetwrite/sveltedependency
  • @sheetwrite/vuedependency
  • @sheetwrite/xlsxdependency

Public exports naming ChartDefinition

Documentation