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

Auto Scaling in x-axis due to large number of values

3 Answers 204 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Pratik
Top achievements
Rank 1
Pratik asked on 21 Nov 2012, 02:38 PM
Hi Telerik Team,

I am new to Kendo UI charts ( MVC ). Do Kendo charts provide any provision for auto scaling x axis in MVC for column chart ? like I have a large number of values which mess up the chart display.

I want to display dates on x-axis.

Thanks
Pratik

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 26 Nov 2012, 02:45 PM
Hello Pratik,

Chart axis auto scaling is not supported, but with the SP1 of Kendo UI for MVC we will add autoBaseUnitStepsbaseUnitStep and maxDateGroups.
Whit this properties you can modify the chart default behavior. Until then you can skip some of chart's labels with skip and step:
.CategoryAxis(axis => axis
    .Labels(labels => labels.Skip(2).Step(2))
)

Greetings,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RamaKrishna P
Top achievements
Rank 1
answered on 24 Aug 2013, 05:50 AM
please I need same thing for HTML5 chart, can u provide..?
thanks in advance.
0
Hristo Germanov
Telerik team
answered on 29 Aug 2013, 07:57 AM
Hi RamaKrishna P,

This piece of code in jacascript will look like this:

....
categoryAxis: {
   labels: {
      skip: 2,
      step: 2
   }
}
....

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Pratik
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
RamaKrishna P
Top achievements
Rank 1
Share this question
or