Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Mentioning X values for a set of data points

Sort Posts: Previous Next
  •  05-01-2008, 5:11 PM Post no. 11912

    Mentioning X values for a set of data points

    Hi,

         I have x axis from 1 to 12. I need to draw a line for each x value. There are three y values for corresponding x values. i need to specify all the x and y values and draw a straight line for parallel to y axis. How to include the x value in the line series and control the x value. Please give some sample code and explain.

     Regards,

    Sara

  •  05-02-2008, 11:39 AM Post no. 11929 in reply to 11912

    Re: Mentioning X values for a set of data points

    You need to set the UseXValues property to "true" to use the X values. The Y values will be stored in the "Values" collection and the X values will be stored in the "XValues" collection (both on the LineSeries object).

    m_Line.UseXValues = true;
    m_Line.AddXY(11, 72);


    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.