Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Convert Xaxis labels

Not answered Convert Xaxis labels

Feed from this thread
  • Peter avatar

    Posted on Feb 8, 2012 (permalink)

    I have created a report, completely wihin the designer. This report contains several graphs, wiyh on the x-axis the month-nr's. To achieve better readability, I want to convert the month-numbers to month-names. I have created a method:

    public static string NRToMonth(int nr)
    {
      string month = "";          
      switch (nr)           
      {               
        case 1:                   
          month = 
    "jan";
          break;
        case 2:
          month =
    "feb";
          break;



    This methods works fine when used in a table, but now I want to convert the x-axis labels of several graphs. 
    At this moment i really don't know which code and where to put this code to change the x-axis?

    I can change parameters like axis-labels programmatically, but not convert axis values?

    i'm using Telerik Reporting 2011 Q3

    Reply

  • Steve Steve admin's avatar

    Posted on Feb 11, 2012 (permalink)

    Hi Peter,

    You need to set the custom values to the Chart.PlotArea.XAxis[0].TextBlock.Text property. You can see similar implementation in How Do I add Axis Labels Programmatically help article.

    Kind regards,
    Steve
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Convert Xaxis labels
Related resources for "Convert Xaxis labels"

Features  |  Documentation  |  Demos  |  Telerik TV  |  Knowledge Base  |  Code Library  |  Step-by-step Tutorial  |  Blogs  |  Whitepaper  ]