Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Chart > CategoryAxis Units

Not answered CategoryAxis Units

Feed from this thread
  • Joe avatar

    Posted on Feb 1, 2012 (permalink)

    Is there a way to skip category axis values in a chart similar to the way the Major/Minor Units are set for the Value axis?  I have a chart that is displaying a Line chart for web activity for the last 30 days.  I have the data working with the chart just fine but the category axis seems a little crunched together as I'm showing the dates for each day.  I would like to be able to only show the labels for say every other day but still have the line chart value for all 30 days.

    Is this possible?

    Reply

  • Hristo Germanov Hristo Germanov admin's avatar

    Posted on Feb 2, 2012 (permalink)

    Hi Joe,

    Thank you for contacting us.

    Currently this functionality is not supported, but I will add it as a feature request in our internal system. If we receive more requests for the same functionality, we will schedule it for investigation.

    Kind regards,
    Hristo Germanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now

    Reply

  • Devrao avatar

    Posted on Feb 14, 2012 (permalink)

    Hi Hristo ,
      We are also facing same problem. Could you please suggest work around for the same?
      We are plotting some dates on x axis and certain values as series.
      We are also showing tooltip which displays date + value.
      Since dates are too many, x axis seems crowded.
      We don't want to represent all the dates on x axis but in tool tip.

    Awaiting for your reference.

    Thanks & Regards,
    Devrao Dhanawade.

    Reply

  • Hristo Germanov Hristo Germanov admin's avatar

    Posted on Feb 17, 2012 (permalink)

    Hello Devrao,

    With the official release of Telerik Components for ASP.NET MVC we implemented step for the labels axis of the chart. You can try this:

    .CategoryAxis(axis => axis
        .Categories(s => s.DateString).Labels(labels => labels.Step(2))
    )
    Greetings,
    Hristo Germanov
    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

  • Joe avatar

    Posted on Feb 17, 2012 (permalink)

    Thank you for the speedy resolution of this request.  I look forward to getting this feature working in our application soon.

    Thanks,

    Joe

    Reply

  • Max avatar

    Posted on Feb 17, 2012 (permalink)

    Hi Hristo,
    I also display 30 days in my axis and one solution I found was the following:
    .CategoryAxis(axis =>
        {
            axis.Categories(s => s.UpgradeDate);
            axis.Labels(l => l.Rotation(50));
        })
    That works great for Columns, however when I change it to Bars the dates move to the vertical line (which is the normal behaviour) and they are all crunched. I still have plenty of room in the screen, not sure why the space between the dates are not streched or why the height of the chart is not extended giving more space among the data grid lines.

    If you could shed some light here I'd appreciate it.

    Thank you

    Reply

  • Francisco avatar

    Posted on Mar 26, 2012 (permalink)

    Isn't a way to activate the scroll bar on the x-axis like in the asp.net ajax chart? 

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Chart > CategoryAxis Units
Related resources for "CategoryAxis Units"

ASP.NET MVC Chart Features  |  Documentation  |  Demos  |  Telerik TV ]