Hi, I've been working with MSGraph for a week now. Making line charts and the such gives me no problems, but the pie charts are another matter.
As is, the code will display the legend except it will label the legend items simply as "1" and "2". Which is not descriptive at all. I would like to be able to set each item's name to a simple string like "Banana" or whatever.
How do I do this?
Code:
OMetResults.ChartSpace1.Clear
OMetResults.ChartSpace1.Charts.Add
' Create our series. There will be at most two (one project and the other)
OMetResults.ChartSpace1.Charts(0).SeriesCollection.Add
OMetResults.ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, Metrics.CrossLbl(10) & Chr(9) & Metrics.MetricLbl(10).Caption
OMetResults.ChartSpace1.Charts(0).Type = chChartTypePie
OMetResults.ChartSpace1.Charts(0).HasLegend = True
As is, the code will display the legend except it will label the legend items simply as "1" and "2". Which is not descriptive at all. I would like to be able to set each item's name to a simple string like "Banana" or whatever.
How do I do this?