Hey guys,
I'm new to Kendo UI. This is basically my first post on forum. I'm on trial version now. I have a few questions about customizing of column charts.
This is the database in MS SQL that I'm mapping.
[url=http://ifotos.pl/zobacz/1png_neepeqr.png/][img]http://s6.ifotos.pl/mini/1png_neepeqr.png[/img][/url]
This is my controller:
My model:
and my view:
This is the chart I'm getting.
[url=http://ifotos.pl/zobacz/2png_neepeqa.png/][img]http://s6.ifotos.pl/mini/2png_neepeqa.png[/img][/url]
Now I am able to turn of/ turn on Columns using the box on the right. But I would like to do that for each record in the database separately.
I'm new to Kendo UI. This is basically my first post on forum. I'm on trial version now. I have a few questions about customizing of column charts.
This is the database in MS SQL that I'm mapping.
[url=http://ifotos.pl/zobacz/1png_neepeqr.png/][img]http://s6.ifotos.pl/mini/1png_neepeqr.png[/img][/url]
This is my controller:
public ActionResult Index(){IList<CzasPracyMaszyn> CzasPracyMaszyn = _repository.GetCzasPracyMaszyn();return View(CzasPracyMaszyn);}My model:
public class CzasPracyMaszyn{public virtual int ID { get; set; }public virtual string STANOWISKO { get; set; }public virtual int CZASPRACY { get; set; }}and my view:
@model IEnumerable<CMMS_Aplixcom_alfa.Models.CzasPracyMaszyn>
@(Html.Kendo().Chart(Model) .Name("aa") .Title("aaa") .Series(series => { series.Column(model => model.CZASPRACY).Name("Czas Pracy"); }) .CategoryAxis(axis => axis .Categories(model => model.STANOWISKO) ))[url=http://ifotos.pl/zobacz/2png_neepeqa.png/][img]http://s6.ifotos.pl/mini/2png_neepeqa.png[/img][/url]
Now I am able to turn of/ turn on Columns using the box on the right. But I would like to do that for each record in the database separately.