Dynamically generate axis and series in Extjs 4
问题 I want to generate Y axis dynamically based on json response. for example : { "totalCount":"4", "data":[ {"asOfDate":"12-JAN-14","eventA":"575","eventB":"16","eventC":"13",...}, {"asOfDate":"13-JAN-14","eventA":"234","eventB":"46","eventC":"23",...}, ...and many more. ] } And I want to generate line chart of date vs event . Date is on x-axis and eventA,eventB,...so on should be on Y-axis. So far I tried this : var fieldsForChart = ['eventA','eventB',...]; //This is hard coded. Ext.define(