[Solved] Set programmatically values and labels of a chart
Posted: Tue Oct 20, 2015 6:45 pm
Hi, here again. I have learned to set values to the chart programmatically using an array(random), but not how to set the labels enumerated(change name).
For example:
One possibility that I ponder, is if this can't be done programmatically using an array, would use the range cells system only because I appreciate that using an array of data disable the range cells and the change to data table editor. It seems that does not allow a hybrid system.
For example:
Code: Select all
Dim charts As Object : charts = sheet.Charts
Dim chart as Object : chart = charts.getByIndex(0).EmbeddedObject
Dim data : data = chart.getData(0)
...
...
data.setData(DataArray)