or
@(Html.Kendo().Chart<WT_Portal_PMS2.Models.OpenClockSummary>() .Name("chart") .Title("Open Clocks by Weeks Waiting") .Theme("bootstrap") .Legend(legend => legend .Position(ChartLegendPosition.Top) .Visible(false) ) .DataSource(ds => ds.Read(read => read.Action("_BarChartp", "Summary") .Data("specFilter") )) .Series(series => { series.Column(model => model.Clocks, model => model.barColour); }) .ChartArea(area => area .Height(350) .Background("transparent")) .CategoryAxis(axis => axis .Categories(model => model.CurrentWaitingBand) .Labels(labels => labels.Rotation(-90)) .MajorGridLines(lines => lines.Visible(false)) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0:N0}")) .Line(line => line.Visible(false)) ) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0:N0}") ) )<span>Open Clocks by Weeks Waiting</span> <span class="pull-right badge">C1</span>$.ajax( { url: '@Url.Action("GetThrowData", "UserConsoleViewModels")', type: 'POST', dataType: 'json', data: { throwId: _throwId } } ).done( function (response) { console.log(response); $("#direction").text(response.Data.Action); $("#lblRawData").text(response.Data.RawData); } ).error( function (xhr, status, error) { alert(xhr.responseText); }); @(Html.Kendo().Chart() .Name("currentGraph") .Title("Switch Current Graph") .Legend(legend => legend .Position(ChartLegendPosition.Bottom) ) .ValueAxis(axis => axis.Numeric() .Labels(labels => labels.Format("{0}")) .Title("Current") ).HtmlAttributes(new { style = "height:300px" }) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0}") ))