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

[Solved] CategoryAxis Units

6 Answers 235 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 2
Joe asked on 01 Feb 2012, 09:15 PM
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?

6 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 02 Feb 2012, 04:07 PM
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
0
Devrao
Top achievements
Rank 1
answered on 14 Feb 2012, 10:12 AM
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.
0
Hristo Germanov
Telerik team
answered on 17 Feb 2012, 08:34 AM
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 >>
0
Joe
Top achievements
Rank 2
answered on 17 Feb 2012, 07:56 PM
Thank you for the speedy resolution of this request.  I look forward to getting this feature working in our application soon.

Thanks,

Joe
0
Max
Top achievements
Rank 1
answered on 17 Feb 2012, 11:50 PM
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
0
Francisco
Top achievements
Rank 1
answered on 26 Mar 2012, 08:05 PM
Isn't a way to activate the scroll bar on the x-axis like in the asp.net ajax chart? 

Tags
Chart
Asked by
Joe
Top achievements
Rank 2
Answers by
Hristo Germanov
Telerik team
Devrao
Top achievements
Rank 1
Joe
Top achievements
Rank 2
Max
Top achievements
Rank 1
Francisco
Top achievements
Rank 1
Share this question
or