The custom line and Text Primitives in the sample of FillSceneGraph are drawing outside of the chart area when Scaling and Scrolling is enabled on the chart.
Thanks
Hello Linh,
I have been looking into this issue more thoroughly and can conclude that this is not a bug. The issue appears because you have simply added a Line to the SceneGraph without restricting the way it is drawn. The event is exposed in order to enable the user to add a wide functionality and this is why there are no restriction added to it.
What you can do in order to enclose it in a visible bound is add a GraphicsContext before adding the Line and set its ClipBounds to match the ChartLayer like so:
GraphicsContext gc = new GraphicsContext();
gc.SetClipBounds(e.ChartCore.GetChartLayer().OuterBound);
e.SceneGraph.Add(gc);
Hope this makes things clearer.
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support