or
jQuery(
function
(){jQuery(
"#programSpend"
).kendoChart({
"title"
:{
"text"
:
"Program Spend"
},
"legend"
:{
"position"
:
"bottom"
},
"series"
:[{
"name"
:
"Sum of Spend"
,
"type"
:
"line"
,
"field"
:
"Series1Data"
}],
"categoryAxis"
:[{
"labels"
:{
"rotation"
:-90},
"field"
:
"Category"
}],
"valueAxis"
:[{
"labels"
:{
"format"
:
"{0:N0}"
},
"line"
:{
"visible"
:
true
}}],
"dataSource"
:{
"transport"
:{
"prefix"
:
""
,
"read"
:{
"url"
:
"/ChartJson/ProgramSpend"
,
"type"
:
"POST"
}},
"type"
:
"aspnetmvc-ajax"
,
"schema"
:{
"model"
:{
"fields"
:{
"Category"
:{
"type"
:
"string"
},
"Series1Data"
:{
"type"
:
"number"
}}}}},
"tooltip"
:{
"format"
:
"{0:N0}"
,
"visible"
:
true
}});});
{
"Data"
:[{
"Category"
:
"Dec - 13"
,
"Series1Data"
:29994974.40},{
"Category"
:
"Jan - 13"
,
"Series1Data"
:40317364.19},{
"Category"
:
"Feb - 11"
,
"Series1Data"
:46536492.18}]}
var
contactDataSource =
new
kendo.data.DataSource({
transport: {
tbl: azureService.client.getTable(
'CRContact'
),
read:
function
(options) {
this
.tbl.read({ SearchString: options.data.filter.filters[0].value}).done(
function
(d) {
options.success(d);
},
function
(err) {
options.error(err);
});
}
serverFiltering :
true
,
schema: {
model:
{
id:
"id"
,
}
}
this
.tbl.lookup(idThatISendAsParameter).done(
function
(result) {
},
function
(err) {
})