I would like to remove the legend all together from a chart. I am showing one set of data...basically 13 months of utilization for a website...and the legend is unnecessary. I am using this string:
Set myData = myChart.PrimaryPlotArea.AddIndexedColumnSeries("VS")
and even if I leave the VS out, it puts the legend color square into the chart.
Also...
I would like to set the color of the column. It's a weird blue that doesn't go with our color scheme for our client charts and I can't seem to find anything in the documentation on how to set the color of the data elements specifically.
Thanks much!
v5.0 Questions
Re: v5.0 Questions
Support · Aug 31, 2009Hello,
Yes, you can remove the legend labels without any problem. You will have to set the visible property of the legend for this.
Chart.GetLegend(0).Visible = False
You can also set the colors to the columns by using the color property of the columnseries data objects. You can set the color in the AddValue method.
MyColumnSeries1.AddValue 5,,,"Red"
Thanks,
ceTe Software Support Team.