This is a migrated thread and some comments may be shown as answers.

Additional X axis labels

1 Answer 165 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 11 May 2016, 03:58 PM
I am using the RadHtmlChart control. I have set the X axis title, as shown below. But in addition to that, I want each column to have its own title or label on the X axis. Is that possible? I can see that the RadHtmlChart control supports 2 Y axes, but it does not appear to support 2 X axes. If it did, I could use the second X axis to display the additional axis labels.

1 Answer, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 1
answered on 12 May 2016, 01:22 PM

Sorry, never mind that. I figured it out. My code looks like this:

RadHtmlChart1.PlotArea.XAxis.Items.Add(dt.Rows[0]["monthName"].ToString());
RadHtmlChart1.PlotArea.XAxis.Items.Add(dt.Rows[1]["monthName"].ToString());
RadHtmlChart1.PlotArea.XAxis.Items.Add(dt.Rows[2]["monthName"].ToString());
RadHtmlChart1.PlotArea.XAxis.Items.Add(dt.Rows[3]["monthName"].ToString());
RadHtmlChart1.PlotArea.XAxis.Items.Add(dt.Rows[4]["monthName"].ToString());
RadHtmlChart1.PlotArea.XAxis.Items.Add(dt.Rows[5]["monthName"].ToString());

Tags
Chart (HTML5)
Asked by
Frank
Top achievements
Rank 1
Answers by
Frank
Top achievements
Rank 1
Share this question
or