PDA

View Full Version : Display Legend name dynamically



samarth
5 Nov 2013, 5:29 AM
Hi folks,
I am uxing ExtJS 3.4. I have a line chart that values is coming according to combo value i have used. I need to display the legend name dynamically by getting the combo value. How can i change the legend name dynamically in extjs line chart. Please help me in this issue.

Thanks in advance

slemmon
6 Nov 2013, 9:29 PM
I don't believe there is a setter method for the legend's field. I suspect the best you may be able to do is destroy/create a new chart.

samarth
10 Nov 2013, 8:16 PM
Hi slemmon,
I have tried a lot in this finally i got a solution that instead of legend we can display the name of the legend by using tiprenderer.

I don't believe there is a setter method for the legend's field. I suspect the best you may be able to do is destroy/create a new chart.