Column chart customization

2 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    7 posts
    Member since:
    Aug 2013

    Posted 08 Aug 2013 Link to this post

    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.
    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>

          .Series(series => {
              series.Column(model => model.CZASPRACY).Name("Czas Pracy");
          .CategoryAxis(axis => axis
              .Categories(model => model.STANOWISKO)
    This is the chart I'm getting.

    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.

  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 12 Aug 2013 Link to this post

    Hi Mateusz,

    Thank you for the provided URL. If I understand your scenario correctly you would like when clicking on the Chart legend to hide / show a particular bar? If this is the case I am afraid it is not supported by Kendo UI Chart and there is no a suitable workaround I can suggest. If you are requesting a different functionality please elaborate a bit more - this way I would be able to advice you further and provide concrete recommendations. 

    Iliana Nikolova
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top