or
function rceTime() { $("#chart9").kendoChart({ theme: $(document).data("kendoSkin") || "default", title: { text: "Visa Expiry and Contract Expiry in Coming months" }, dataSource: { transport: { read: { url: "scripts/contractExpiry.json", dataType: "json" } } }, legend: { visible: true, position: "right" }, seriesDefaults: { type: "scatterLine", }, series: [{ name: "Contract Expiry", xField: "month", yField: "day" },{ name: "Visa Expiry", xField: "month1", yField: "day1" }], xAxis: { title: { text: "Month" }, max: 12, }, yAxis: { title: { text: "Date of Month" }, min: 0, max: 31, labels: { format: "{0}" } }, tooltip: { visible: true, template: "#= dataItem.name #" } });}public class Event{ public DateTime eventDate {get; set;} public string name {get; set;} public double eventvalue {get; set;}}<div class="chart-wrapper"> @(Html.Kendo().Chart(Model) .Name("chart") .Title("events") .Legend(legend => legend .Position(ChartLegendPosition.Bottom) ) .Series(series => { series.Line(model => model.eventvalue ) .Name(item.name ); //.Labels(labels => labels.Format("{0:N0}").Visible(true)); }) .CategoryAxis(axis => axis .Categories(model => model.eventDate ) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) ) ) </div><div class="chart-wrapper"> @(Html.Kendo().Chart(Model) .Name("chart") .Title("Product Samplings") .Legend(legend => legend .Position(ChartLegendPosition.Bottom) ) .Series(series => { foreach (var item in Model) { series.Line(model => model.eventvalue ) .Name(item.name ); //.Labels(labels => labels.Format("{0:N0}").Visible(true)); } }) .CategoryAxis(axis => axis .Categories(model => model.eventDate ) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) ) ) </div>01.var dataSource = new kendo.data.DataSource({02. transport: {03. read: {05. contentType: "application/json; charset=utf-8",06. dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests07. }08. },09. schema: {10. data: function(response) {11. return response.posts; // twitter's response is { "results": [ /* results */ ] }12. }}13.});14.dataSource.fetch(function(){15. var data = this.data();16. console.log(data.length);17. console.log(data[0].title);18. dataSource.sync();19.});// Prevent the grid command 'click' event from triggerring the grids 'change' event.grid.tbody.on('mousedown', 'a', function (evnt) { evnt.stopImmediatePropagation();});