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