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
Post a Comment