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
220
How to Set X Axis & Y Axis Value
posted

Sir,

  I have a dataset with 'N' columns. But i want to assign only one cloumn in X axis and One Column to Y axis. How to do it?  Does my Datasource assigned to Chart control should have only those columns  or it can contain many???

Thanks

R.Vasanth

Parents
No Data
Reply
  • 26458
    Offline posted

    There are different data requirements for different chart types. Columns can be excluded from the chart's datasource by using the following:
    chart.Data.IncludeColumn(numericColumnIndex, false)
    For the most common chart types (Column, Line) the first string column is automatically picked for the X axis or can be specified by RowLabelsColumn property. For Scatter charts, you can specify ColumnX and ColumnY columns explicitly.

    Alternatively, you can filter your data with a data view and use it as the chart's datasource.

Children
No Data