Class: Chart

Core.SpreadsheetEditor. Chart

Represents a chart in a spreadsheet.

new Chart()

Properties:
Name Type Description
Id string The unique chart identifier
sheetIndex number The worksheet index where this chart is located
sourceRanges Object.<string, Array.<string>> A mapping of range type names to their cell references. Keys are range types such as "DataRange", "CategoryRange", "DataDomainRange", "NameRange", "DataLabelsRange", or "MarkerRange". Values are arrays of cell reference strings (e.g., ["Sheet1!A1:A10", "Sheet1!B1:B10"]).
X number The chart's X position in page units
Y number The chart's Y position in page units
Width number The chart's width in page units
Height number The chart's height in page units
canvas HTMLCanvasElement The canvas element used to render the chart