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

4 posts, 0 answers
  1. Pratik
    Pratik avatar
    1 posts
    Member since:
    Jan 2012

    Posted 21 Nov 2012 Link to this post

    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
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 26 Nov 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. RamaKrishna P
    RamaKrishna P avatar
    7 posts
    Member since:
    Jun 2010

    Posted 24 Aug 2013 Link to this post

    please I need same thing for HTML5 chart, can u provide..?
    thanks in advance.
  5. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 29 Aug 2013 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready