Hi I am trying to learn ASP.NET MVC and Kendo so i am a bit new to all stuff about scripting etc and i need your serious help.
I have two questions. I have a one chart with date functions which can be sortable by months, dates and years. I can get all values from chart with clicking "by months, by years, by dates etc" and than everything is quite okay to this point.
What i want is, I need a simple grid near of my chart. When user click chart's script functions("by months, by years, by dates etc".) user can get a dynamic simple grid with chart's values. How can i do that?
My another question is how can i show, first 6 months of 2014 and last 6 months of 2014 with clicking script functions. How can i add them to ".configuration-horizontal" div.
Thanks for your help.
Mychart:
Script
I have two questions. I have a one chart with date functions which can be sortable by months, dates and years. I can get all values from chart with clicking "by months, by years, by dates etc" and than everything is quite okay to this point.
What i want is, I need a simple grid near of my chart. When user click chart's script functions("by months, by years, by dates etc".) user can get a dynamic simple grid with chart's values. How can i do that?
My another question is how can i show, first 6 months of 2014 and last 6 months of 2014 with clicking script functions. How can i add them to ".configuration-horizontal" div.
Thanks for your help.
Mychart:
<td> <div align="center" id="MyChart"> @(Html.Kendo().Chart(Model).Name("MyChartz") .Title(title => title .Text("Aaaaa)") .Position(ChartTitlePosition.Top)) .Legend(legend => legend .Visible(true) .Position(ChartLegendPosition.Top)).Series(series =>{ series .Column(model => model.aaa, categoryExpression: model => model.DateTime).Name("aaa Dosyalar") .Aggregate(ChartSeriesAggregate.Count); series .Column(model => model.bbb, categoryExpression: model => model.DateTime).Name("bbb Dosyalar") .Aggregate(ChartSeriesAggregate.Count);}).CategoryAxis(axis => axis .Date() .BaseUnit(ChartAxisBaseUnit.Months) .MajorGridLines(lines => lines.Visible(false))) .Tooltip(tooltip => tooltip .Visible(true) .Template("#= series.name #: #= value #")) ) </div> </td>Script
<script type="text/javascript"> $(".configuration-horizontal").bind("change", refresh); function refresh() { var chart = $("#chartMesleki258").data("kendoChart"), series = chart.options.series, categoryAxis = chart.options.categoryAxis, baseUnitInputs = $("input:radio[name=baseUnit]"), aggregateInputs = $("input:radio[name=aggregate]"); for (var i = 0, length = series.length; i < length; i++) { series[i].aggregate = aggregateInputs.filter(":checked").val(); } categoryAxis.baseUnit = baseUnitInputs.filter(":checked").val(); chart.refresh(); }</script>