How can I set a date as a category for pie charts that adjusts automatically?

1 Answer 46 Views
Charts DateInput
Syed Zain
Top achievements
Rank 1
Syed Zain asked on 03 Aug 2023, 08:57 AM
This is the current code and it is not working the way it does for bar charts, it is populating every date onto the graph and not aggregating itself according to months
series: [
                    {
                        type: "pie",
                        field: "value",
                        categoryField: "category",
                        aggregate: "sum",
                        padding: 10,
                        overlay: {
                            gradient: "none",
                        },
                        categoryAxis: {
                            baseUnit: "months",
                            maxDivisions: 5,
                            rangeLabels: {
                              visible: true,
                              format: "M"
                            },
                            labels: {
                              format: "d-M"
                            }
                        },]
This is what I need it to look like: 



1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 08 Aug 2023, 08:15 AM

Hi,

I would suggest taking a look at the Knowledge Base article linked below where aggregation in the Pie Chart is demonstrated:

https://docs.telerik.com/kendo-ui/knowledge-base/pie-chart-aggregates

I hope this helps. 

Regards,
Neli
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Charts DateInput
Asked by
Syed Zain
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or