PDA

View Full Version : How to change sencha bar chart legend names dynamically?



SaravananA
10 Jan 2012, 3:22 AM
Hi All,

I am plotting a bar chart of sales volume of different items in a year.
I get legend names as data1,data2 displayed in the bar chart. data1 and data2 represents sales volumes of Cars and Bikes in the chart. Instead I want to change the legend names as Cars and Bikes respectively.
Request some inputs on this!!!!!
Further Legend names shall be needed to change for different bar charts, say company stocks bar chart where legend names shall be preference stock for data1 and simple stock for data2.
Sencha bar chart is plotted with below data.

Month Cars Bikes
Jan 45 67
Feb 23 56
Mar 20 70
Apr 35 43




Thanks