4,374 questions
In office/excel script, how to change the name of the first series?
Al Shahriar
0
Reputation points
I am plotting the data as follows
const chart1 = sheet.addChart(ExcelScript.ChartType.xyscatterLines, r1);
Then, I added another series
let firstSeries = chart1.addChartSeries();
firstSeries.setName("Force")
Here, I can set the series name as "Force".
How can I change the name of the initial one (range object r1) to "Torque"?
Microsoft 365 and Office Development Other
Microsoft 365 and Office Excel For business Windows
3,888 questions
Sign in to answer