I am needing to reset my datasource to grab parameters from my page to reload the chart. Is there a way to make this happen?
Here is my code for the chart currently. I need change the querystring that goes back on the url for the remote datasource based on page values.
Here is my code for the chart currently. I need change the querystring that goes back on the url for the remote datasource based on page values.
$("#chart").kendoChart({
dataSource:
{
transport:{
read:{
url: "@Url.Action("BusinessUnitCompareChart")" + "?date=" + $("#DateFilter").val() + "&StructureId=" + "@ViewData["StructureId"].ToString()" + "&buids=" + "@ViewData["buids"].ToString()",
dataType:"json"
}
},
group:{ field:"Name"},
sort:{
field:"Name",
dir:"asc"
}
},
series:[{type:"column", field:"Count"}],
seriesColors:["#C81717","#8E908F","#0098DB"],
categoryAxis:{ field:"CategoryName"},
theme: "Metro",
title: {
text: "Open/ Aging/ Closed"
},
tooltip: {
visible: true
},
seriesClick: onSeriesClick
});