Represents a series in a chart.
Property | Type | Description |
---|---|---|
name | string | Represents the name of a series in a chart. |
Relationship | Type | Description |
---|---|---|
format | ChartSeriesFormat | Represents the formatting of a chart series, which includes fill and line formatting. Read-only. |
points | ChartPointsCollection | Represents a collection of all points in the series. Read-only. |
Method | Return Type | Description |
---|---|---|
load(param: object) | void | Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. |
Fills the proxy object created in JavaScript layer with property and object values specified in the parameter.
object.load(param);
Parameter | Type | Description |
---|---|---|
param | object | Optional. Accepts parameter and relationship names as delimited string or an array. Or, provide loadOption object. |
void
Rename the 1st series of Chart1 to "New Series Name"
var ctx = new Excel.RequestContext();
var chart = ctx.workbook.worksheets.getItem("Sheet1").charts.getItem("Chart1");
chart.series.getItemAt(0).name = "New Series Name";
ctx.executeAsync().then(function () {
Console.log("Series1 Renamed");
});