Additional X axis labels

2 posts, 0 answers
  1. Frank
    Frank avatar
    4 posts
    Member since:
    Sep 2015

    Posted 11 May Link to this post

    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.
  2. Frank
    Frank avatar
    4 posts
    Member since:
    Sep 2015

    Posted 12 May in reply to Frank Link to this post

    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());

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top