javascript - How to insert a chart with data non-contiguous in Excel using API office.js? -


i know possible excel doing :

'--------------------- set a1 = range(cells(10, 1), cells(20, 1)) set a2 = range(cells(10, 8), cells(20, 8)) u = union(a1, a2).address '------------- charts.add activechart.charttype = xlline activechart.setsourcedata source:=sheets('feuil1').range(u), plotby:=xlcolumns 

but possible office.js api ?

thanks in advance ;-)

due varying degrees of support creating such charts on excel desktop vs. online vs. ios vs. mac, apis not expose ability bind non-contiguous range. if have noncontiguous data, best bet copy sheet (which can hide if want) in contiguous fashion, in order in want data displayed. , create chart off of (just in regular excel, chart can on different sheet data range).


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -