madhu Posted May 20, 2009 Report Posted May 20, 2009 <?xml:namespace prefix = o /> Hello Sir, How to add custom legend items to legend box for multiple charts?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Single chart, the code is working correctly but if we apply mulitple charts it Quote
TatianaG Posted May 20, 2009 Report Posted May 20, 2009 What do you mean with Multiple Charts? Is it a combination chart or several Panes for multiple series? Quote
madhu Posted May 21, 2009 Author Report Posted May 21, 2009 It is a several Panes for multiple series. Thanks, Madhu Quote
TatianaG Posted May 22, 2009 Report Posted May 22, 2009 I have tested your code and I saw that you are calling _chart.LegendBox.CustomItems.Clear() twice. One before the first "for" loop and the second one just after the "for". The reason that your custom legend items are not being shown is because you are deleting them in each call of the loop. If you delete the second call of the CustomItems.Clear method, your chart will display all the custom legend items. _chart.LegendBox.CustomItems.Clear(); for (int QuesInd = 0; QuesInd < questionInfoArray.Length; QuesInd++) { _chart.LegendBox.CustomItems.Clear() ;//This one is not necessary Quote
madhu Posted May 25, 2009 Author Report Posted May 25, 2009 Hello Sir, I have un-commented the code and tries but it is not working, and observed that 'Series' count in the chart object returns '0'. Please suggest any solution to get the series value. Thanks, Madhu Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.