1

我是 KendoUI 的初学者。我想在我的移动应用程序中使用 Kendo UI 显示条形图(基于 Phone Gap)。此条形图的数据应来自 Web 服务。此 Web 服务以 JSON 对象的形式返回数据,该对象具有 X 和 Y 坐标的 JSON 数组。

我试过这个

$("#chart").kendoChart({
    dataSource: {
        transport: {
            read: {
                url: " some URL ",
                dataType: "json"
            }
        },
        sort: {
            field: "year",
            dir: "asc"
        }
    }
});   

任何帮助都会非常有用。谢谢。

4

1 回答 1

0

ASP.Net Web API 将是您创建返回 JSON 的 HTTP 服务的最佳伙伴。查看本教程:http ://docs.kendoui.c​​om/tutorials/ASP.NET/asp-net-hello-services

于 2013-02-26T12:58:33.647 回答