Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

How to find X-axis and Y-axis values at any point on UltraChart

Last post 07-08-2008 16:39 by [Infragistics] David Negley. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-01-2008 0:39

    How to find X-axis and Y-axis values at any point on UltraChart

    I want to plot Volume on X-axis and Pressure on Y-axis,both X,Y data being of type double.How can I do this using LineChart in UltraChart? It appears that the X axis value always needs to be of type String or DateTime.

    Also, I am using Box Annotation and want to know the Data Values on X-axis (Volume) where the Annotation area begins and ends. How can I find out the Data Value (for any of the axes) at a specific "point" on the Chart Area?

    Filed under:
    • Post Points: 20
  • 07-08-2008 16:39 In reply to

    Re: How to find X-axis and Y-axis values at any point on UltraChart

     Try handling the chart's FillSceneGraph event.  In there, you can reference the axis objects using this expression:

    IAdvanceAxis xAxis = e.Grid["X"] as IAdvanceAxis;

    then you can use the axis' Minimum/Maximum/MapMinimum/MapMaximum properties to get the information you need ... as well as the Map and MapInverse methods to convert pixels to data values or vice versa.

    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems