Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Bug when drawing Custom Line and Text Primitives in FillSceneGraph
posted

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

Parents
No Data
Reply
  • 27093
    Verified Answer
    posted

    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

Children
No Data