Display only specific months

2 posts, 1 answers
  1. David
    David avatar
    16 posts
    Member since:
    Aug 2014

    Posted 06 Jan 2016 Link to this post

    Is there a way to only display specific months, in my case 1-4 which is representing the quarters instead of actual months due to how the data is inserted into the database? I have the following in the categoryAxis but it is still displaying all of the months. I can put in [3] for the months but then it goes 1, 4, 7, 10 instead of 1, 2, 3, 4. The database will only ever have 1-4 as a quarter and then the year and so I am attempting to limit the display to only the data that will be inserted.


    categoryAxis: [
        field: "Fiscal",
        type: "date",
        maxDateGroups: 4,
        autoBaseUnitSteps: {
            days: [],
            weeks: [],
            months: [1,4]
        baseUnit: "months",
        labels: {
            dateFormats: {
                months: "MM/yy"







  2. Answer
    Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 08 Jan 2016 Link to this post

    Hi David,

    If I understand correctly, you have data only for quarters? If this is the case I would suggest using a categoryAxis with type category (instead of date axis) - this way you would be able to display only the specific periods.

    Iliana Nikolova
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top