This is a migrated thread and some comments may be shown as answers.

Is it Possible To Set Series Name in Chart?

1 Answer 7 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 22 Nov 2013, 07:22 PM
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?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Nov 2013, 03:12 PM
Hello,

You could use the overload hat accepts the field name as string:
series.Column(fieldName);


Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Joshua
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or