I want to remove one item from legend box dynamic
I use piechart and my version is 2048
Dear foxbabby,
Thank you for contacting Infragistics!
We have received your support request concerning removing an item from the legend, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and my first question is are you looking to remove the item from only the legend, and still have it display on the piechart?
The following documentation may also provide some information to help achieve this:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=Chart_ChartDrawItem_Event.html
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=Chart_FillSceneGraph_Event.html
Looking forward to hearing from you.
Yes. Because I want only delete item from Legend according to item lable's text. Can you show me the code? Thanks
Hi foxbabby,
Thank you for the clarification. I am looking into using the ChartDrawItem Event to remove the data from the legend.
I will have an update for you on my findings by the end of tomorrow.
If you have any questions or concerns with this, please let me know and I'll be glad to help.
Hello foxbabby,
You can use the following code snippets to hide the items in the legend. Further logic would be required to line the items up correctly, but the basics are outlined below.
In your Page.cs file:
In Page_Load:
If you would like more information on advanced chart topics, please see the following blog post: http://es.infragistics.com/community/blogs/sung_kim/archive/2008/09/05/chart-university-chart-101-and-some-201-301-401-stuff.aspx
If you have any further questions, please let me know and I'll be glad to help.