On this page
A chart definition that its holder must not modify. A ChartView hands out
the store's own definition, so it is typed read-only all the way down.
Declaration
Referenced by
Public exports naming ReadonlyChartDefinition
interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: {
xTitle?: string;
yTitle?: string;
multiLevelLabels?: boolean;
};
legend?: "none" | "top" | "right" | "bottom" | "left";
anchor: ChartAnchor;
series: ChartSeries[];
pivot?: string;
pivotValues?: number[];
}interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: {
xTitle?: string;
yTitle?: string;
multiLevelLabels?: boolean;
};
legend?: "none" | "top" | "right" | "bottom" | "left";
anchor: ChartAnchor;
series: ChartSeries[];
pivot?: string;
pivotValues?: number[];
}interface ChartDefinition {
id: string;
kind: ChartKind;
title?: string;
axes?: {
xTitle?: string;
yTitle?: string;
multiLevelLabels?: boolean;
};
legend?:
| "none"
| "top"
| "right"
| "bottom"
| "left";
anchor: ChartAnchor;
series: ChartSeries[];
pivot?: string;
pivotValues?: number[];
}Persisted chart definition; IDs are unique within the owning sheet.API reference