Hi! I made a composite legend for my composite chart. But I don't see any way to change the thickness of lines (colorful) in the legend.
It's important because now it's difficult to say what color a line is and thus hard to find appropriate curve on a chart area.
So, how to change lines thickness?
Thank you in advance!
Hi,
The picture didn't come through and isn't being shown. Can you post a picture of what you want to adjust and I'll see how we can change those parts.
My legend is just like this legend.
This pic was taken from here: http://ko.infragistics.com/community/forums/t/65050.aspx
My problem is solved.
I decided not to use legend at all. Instead I just color an items in my ListView to show where are corresponding lines on the chart.
But I think that possibility to change line's properties on CompositeLegend should be available for developers.
Ah nice that's definitely one way but you can change that now I get a sense of what to change (I admit your text was sufficient but when a picture for a chart is posted I like to refer to that as well and this pic was not showing up), we can already change it like so:
added on to from the sample in the thread you linked (you'll have to excuse my quick VB code but that's what the sample was in):
Private Sub Chart_FillSceneGraph(sender As System.Object, e As Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs) Handles Chart.FillSceneGraph
Dim polyLine As Polyline
For Each primitive As Primitive In e.SceneGraph
If (primitive.Path = "Legend") Then
polyLine = CType(primitive, Polyline)
If (polyLine IsNot Nothing) Then
primitive.PE.StrokeWidth = 8
End If
Next
End Sub
Essentially get to the polyline primitive in the Legend and change it's PE.StrokeWidth to something thicker.
Thank you!
It really works.
That picture didn't come through either but I'll take your word for it that it works :).
I took a look to see how we could make it easier but I don't think it would be as straight-forward a change as desired. Adding a PE property to the Legend, for instance, would expose the PaintElement settings that we could resolve all the settings for Legend items but still allow you to override them with the above snippet. Each legend item could be quite different as well and some settings might not apply which might be ok but also might be confusing in the end. I'll make a note in the feature log to see if we can do something else to make something like this easier in the future. Thanks for the input.