My company uses a control which inherits from UltraChart. The default legend in UltraChart does not meet our needs, so we want to hide the default legend and use a Box primitive instead, with the text and symbols that we want. My first thought was to set the Visible property of the legend to false, but that hid the Box primitive as well as the legend. My next approach is to hide the individual primitives in the legend, but leave its Visible property set to true. Is this the correct way to approach this problem? Thanks.
Hello,
Attached is a sample which hides the legend in the UltraChart. Please let me know if this is what you are looking for.
Thank you,
The texts are primitives like the “Box”. It is “Infragistics.UltraChart.Core.Primitives.Text”.
Thanks for the response. I am fixing a bug in an existing control, which uses an UltraChart. Thanks for the suggestion, though.
I have figured out how to hide all the primitives in the legend, except for the text. Is there a way to access the legend text in order to hide it? Thank you.
You can try also using a CompositeChart. It is more customizable. See these topics:
http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0/?page=Chart_Creating_a_Composite_Chart.html