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

Display only specific months

1 Answer 74 Views
Charts
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Jan 2016, 02:43 PM

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"
        }
    }
}
],

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 08 Jan 2016, 03:28 PM
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.

Regards,
Iliana Nikolova
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
David
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or