Hi,
What formatstring should I use to show the legend of the column and line chart?Thanks
Hi arnololo,
Thank you for posting in the community.
You can show the legend for any chart type using something similar to:
UltraChart1.Legend.Visible = true; UltraChart1.Legend.Location = Infragistics.UltraChart.Shared.Styles.LegendLocation.Left;
A useful guide for customizing UltraWebChart's legend is also available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Chart_Customize_Chart_Legends.html
Please let me know if this helps.
I don't have any problem showing the legend. My issue is how to show the legend for the series of the column and of the line chart since the chart is a columnline type.Below is an example of the legend I would like to insert. My chart is almost identical as the one below.
Thanks
Hi arnolo,
Thank you for your reply.
Assuming that you are displaying the respective composite chart layer elements in 2 colors. The legend you are trying would differentiate your chart layers. As normally legends would show an entry for each data point one apporach would be to set a custom FormatString for your legends and set the size of your legens so that only one entry is shown. Alternatively you can try finding the legend elements in the FillSceneGraph in order to hide the undesired ones.
Feel free to contact me if you have any questions.