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
130
Columnline chart X axis
posted

Hi,

In columnline chart, as column data I have to display 3 columns in each series which is wrking fine. But when line data is plotted it is considering the series label as the x axis values where as i need the middle column in the series as the x axis values to plotted. Any help on this is well appreciated!!

 

Thanks in advance

Santosh

Parents
No Data
Reply
  • 26458
    Offline posted

    you should be able to do this in one of the two ways:

    you can set an array of strings to be used as your row labels:
    string[] labels = {"label1", "label2", "label3"};
    chart.ColumnLineChart.LineData.SetRowLabels(labels);

    or you can set the index of the string column in your datasource that will be used for labels:
    int index = 1;
    chart.ColumnLineChart.LineData.RowLabelsColumn = index;

    If you haven't set SwapRowsAndColumns to true, you may have to use SetColumnLabels instead of SetRowLabels.

Children
No Data