Is there a way to make the legend more readable for a LineChart on a CompositeChart. To make it easier to understand my question I have included the image of my sample app:
The lines on the legend are so small that it is difficult to tell what they are. I am using NetAdvantage for Windows Forms 2008 Vol. 1. I would appreciate any advice.
Thanks,Kerry Jenkins
you can use FillSceneGraph or ChartDtawItem event to do this.
private void ultraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e){ foreach (Primitive p in e.SceneGraph) { Polyline poly = p as Polyline; if (poly!= null && poly.Path!=null && poly.Path.ToLower().IndexOf("legend") != -1) { poly.PE.StrokeWidth = 5; } }}
How would I add items to the Legend?
I'm adding 3 target lines over a column chart in the FillSceneGraph event.
Can I create legend items for these lines in C# and add them to the legend?
You can add items to the legend in the same FillSceneGraph event. Find the first Box that has Path="Border.Title.Legend" and that will be the legend bounds. You can use that to calculate the location for your custom legend items before you add them to the scenegraph.