-
21 Mar 2011 5:12 PM #1
Line Chart - Static Column name but graphy by dynamic column value
Line Chart - Static Column name but graphy by dynamic column value
I'm sure this is ridiculously simple, but for the life of me I can't figure it out. If I have tabular data in my source, where salesperson can be different every week. How can I create a chart that shows both everyone's numbers as a separate trend line?
Code:var store1 = new Ext.data.JsonStore({ fields: ['salesperson','name', 'data1'], data: [ {salesperson: 'Billy', name: 'Jan', data1: 10}, {salesperson: 'Billy', name: 'Feb', data1: 20}, {salesperson: 'Billy', name: 'Mar', data1: 30}, {salesperson: 'Billy', name: 'Apr', data1: 40}, . . . {salesperson: 'Dee', name: 'Jan', data1: 50}, {salesperson: 'Dee', name: 'Feb', data1: 60}, {salesperson: 'Dee', name: 'Mar', data1: 70}, {salesperson: 'Dee', name: 'Apr', data1: 80} ] });
-
24 Mar 2011 11:05 AM #2
Here's basically what I need. The number of names in first column will always vary. I need the chart to be able to always show all names. I cannot figure out how to modify the extjs to do this.
Dynamic Series.jpg
Similar Threads
-
Chart several line in one column
By Mycoding in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 12 Dec 2010, 9:31 AM -
how to Dynamic load column as x-axis in chart?
By yanasdf789 in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 3 Jul 2010, 12:04 AM -
column lock plugin with Dynamic column model plugin
By stephen.lordson in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 18 Jun 2008, 8:42 AM -
Grid line numbers column ?
By newinext in forum Ext 1.x: Help & DiscussionReplies: 9Last Post: 14 May 2008, 3:26 PM -
Grid column wraps to second line
By kalebwalton in forum Ext 1.x: BugsReplies: 1Last Post: 30 Mar 2007, 7:13 AM



Reply With Quote