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
FillSceneGraph
posted

I use FillSceneGraph to display a number of types on the graph. For example if a Y axis value is below some limit i draw a Ellipse around the symbol. I also draw lines and text with no issue EXCEPT for a single Text object that i draw at the bottom  left corner of the graph that contains the date and time the graph was generated.

All  good  so far.

When i print the graph all objects display and print in the correct position  EXCEPT this Text ofject that ends up being drawn in the middle of the graph.

 

code:

targetLabel = New Infragistics.UltraChart.Core.Primitives.Text()

targetLabel.SetTextString(labelText)

targetLabelSize = Size.Ceiling(Infragistics.UltraChart.Core.Util.Platform.GetLabelSizePixels(targetLabel.GetTextString(), targetLabel.labelStyle))

targetLabel.bounds = New Rectangle(5, UltraChart1.Height - targetLabelSize.Height - 5, targetLabelSize.Width, targetLabelSize.Height)

e.SceneGraph.Add(targetLabel)

Parents Reply Children
No Data