在 KendoUI Demo 站点提供的示例中,它的 Chart 是绑定到这些格式的 json 数据:
[ { "Booked" : 0,
"Date" : "/Date(1370620800000)/",
"FailedAttempts" : 0,
"Views" : 0
},
{ "Booked" : 0,
"Date" : "/Date(1370707200000)/",
"FailedAttempts" : 0,
"Views" : 0
}]
但是如果服务器以这种格式返回怎么办:
{ "AggregateResults" : null, "Data" : [ { "Booked" : 0,
"Date" : "/Date(1370620800000)/",
"FailedAttempts" : 0,
"Views" : 0
},
{ "Booked" : 0,
"Date" : "/Date(1370707200000)/",
"FailedAttempts" : 0,
"Views" : 0
},]
}
如何设置 KendoUI 图表以绑定到“数据”节点?