Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.66 KB

chartseries.md

File metadata and controls

62 lines (43 loc) · 1.66 KB

ChartSeries

Represents a series in a chart.

Property Type Description
name string Represents the name of a series in a chart.

Relationships

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.

Methods

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.

API Specification

load(param: object)

Fills the proxy object created in JavaScript layer with property and object values specified in the parameter.

Syntax

object.load(param);

Parameters

Parameter Type Description
param object Optional. Accepts parameter and relationship names as delimited string or an array. Or, provide loadOption object.

Returns

void

Examples

Back

Setter Examples

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");
});

Back