[Infragistics] Max Rivlin:
Hi Max,
Thanks for the quick response. I've implemented the custom layer and have added it to my ASPX page. However, I got a runtime error. The error is "Specified cast is not valid".
Here is the code for the FillSceneGraph implementation in the custom layer:
Public Sub FillSceneGraph(ByVal scene As Infragistics.UltraChart.Core.SceneGraph) Implements Infragistics.UltraChart.Core.Layers.ILayer.FillSceneGraph
For Each p As Primitive In scene
Dim poly As Polyline = CType(p, Polyline) 'The error is on this line
If Not poly Is Nothing AndAlso Not poly.Path = Nothing AndAlso Not poly.Path.ToLower().IndexOf("legend) = -1 Then
poly.PE.StrokeWidth = 5
End If
Next
End Sub
This is where I'm actually calling the above layer (after I've set up the Legend stuff):
chart.CompositeChart.Legends.Add(legend)
chart.Layer.Add("SceneGraph Layer", New SceneGraphLayer)
chart.UserLayerIndex = New String() {"Default", "SceneGraph Layer"}
chart.InvalidateLayers()
Any further help would be appreciated.