Is it Possible To Set Series Name in Chart?

2 posts, 0 answers
  1. Joshua
    Joshua avatar
    22 posts
    Member since:
    Sep 2010

    Posted 22 Nov 2013 Link to this post

    I am trying to set the series name from another field in the model.

    For example, my current code is:
                series.Column(model => model.CallbackFrequency1).Name("FREQ 1").Color("#003366");
                series.Column(model => model.CallbackFrequency2).Name("FREQ 2").Color("#999999");
                series.Column(model => model.CallbackFrequency3).Name("FREQ 3").Color("#00ac36");
                series.Column(model => model.CallbackFrequency4).Name("FREQ 4").Color("#e8b700");

    The name of the series depends upon a date range selected by the user.  I am returning the name I want to use in the model, but I can not figure out how to dynamically populate the series column name. 

    Is this possible?
  2. Daniel
    Daniel avatar
    2231 posts

    Posted 26 Nov 2013 Link to this post


    You could use the overload hat accepts the field name as string:

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