Spread.Sheets Documentation
Configuring Series
Spread.Sheets Documentation > Developer's Guide > Customizing the Appearance > Understanding Chart > Configuring Chart Elements > Configuring Series

Series refers to the set of data points(values in a particular row or column) that are plotted in the chart.

In Spread.Sheets, you can plot one or more data series while creating a chart. Each series represents an item on the legend. You can get, insert and remove a series item from the series collection of a chart and also customize the series name, border width, border color, yValue, xValue and fill color for each series item using the series method and SeriesCollection class.

An basic image with series configuration is shown below.

 

Using Code

This code shows how to configure series in a chart.

JavaScript
Copy Code

//Configure Series
var series = chart.series();
var seriesItem = series.get(0);
seriesItem.yValues = "Sheet1!$B$5:$E$5";
seriesItem.backColor = "#d3d3d3";
seriesItem.border.width = 2;
series.set(0, seriesItem);