Kendo-UI Chart错误

时间:2013-07-25 18:41:58

标签: kendo-ui kendo-dataviz

我试图在DIV中显示一个KendoUI图表并查看LOG所说的内容:

属性width =“ - 10px”

的负值无效

这是代码:

<div id="chart"></div>

这是javascript:

$("#chart").kendoChart({
            theme: "Metro",
            legend: {
                position: "right",
                labels: {
                    font: "12px arial",
                    color: "white"
                },
            },
            chartArea: {
                background: "",
            },
            dataSource: data,
            series: [
                {
                    type: "pie",
                    field: "itemTotal",
                    categoryField: "itemNameAndTotal",
                    explodeField: "exploded"
                }
            ],
            tooltip: {
                visible: true,
                template: "${ category }"
            }
        });

这是css:

#chart {
    background: #f9a600;
    border-radius: 5px;
    margin: 10px 5px 5px 5px;
    padding: 5px;
}

感谢您的帮助!

0 个答案:

没有答案