Pie Chart - Error : attribute transform: Expected number, "translate( NaN, NaN)"

0 Answers 93 Views
Charts
Navdeep
Top achievements
Rank 1
Navdeep asked on 06 Aug 2021, 10:07 AM

Hi,

 

I am getting an error on the pie chart. I am simply using  array to set the datasource:

Here's the code:

$("#chartSales").kendoChart({
                chartArea: {
                    height: 400
                },
                legend: { position: "bottom" },
                title: { text: '<%=GetLocalResourceString("lbl_Sales")%>', font: "26px Arial,Helvetica,sans-serif" },
                seriesClick: onSeriesClick,
                dataSource: {
                    data: seriesArraySales
                },
                seriesDefaults: {
                    type: 'pie',
                    labels: {
                        visible: false
                    },
                    autoFit: true,
                    pie: { color: "red" }
},

                series: [{ categoryField: "name", field: "amount"}],
                seriesColors: ["#03a9f4", "#ff9800", "#fad84a", "#4caf50", "#003f5c", "#58508d", "#bc5090", "#ff6361", "#ffa600", "#488f31", "#83af70", "#bad0af", "#f0b8b8", "#9fb494", "#c6c6c6"],
                tooltip: {
                    visible: true,
                    template: "${ category } - ${ value }"
},
                dataBound: function (e) {
                    var view = e.sender.dataSource.view();
                    $(".overlay").toggle(view.length === 0);
                }
            });

 

Can someone please help.

using libraries : jquery-ui-1.9.1.custom.min.js

jquery.ui.widget.js

jquery.min.js

jquery.min.js

Thanks!

Nav

Nikolay
Telerik team
commented on 11 Aug 2021, 06:52 AM

Hi Navdeep,

Based on the provided it is hard for me to tell what might be causing this error to appear in the console. Could you please share a runnable Dojo demo where the problem is isolated and demonstrated? Having this will help me fully understand the case and allow me to advise further.

Looking forward t your reply.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Navdeep
Top achievements
Rank 1
Share this question
or