how to dynamicaly create multiple line in a extjs chart throuhg a json
how to dynamicaly create multiple line in a extjs chart throuhg a json
hi,
i have been trying to dynamicaly create multiple lin in a extjs 4 char through a json without success...
as u can see in the code below ..
the model and store data will have to be changed ..
i really don't see how it could be done...
basically the user can choose any number of customer which will return a json that will be use to create the line ..
any help is welcome...
var store = new Ext.data.ArrayStore({
id: 'graphStore',
autoLoad: true,
proxy: new Ext.data.HttpProxy({
type: 'ajax',
method: 'GET',
url: 'data/resources/jsons/graph.json',
//url: 'data/resources/jsons/graphNested.json',
//url: '../Services/NukeappsSiteWebService.asmx/GetJsonStructure',
reader: {
type: 'json',
root: 'data'
}
}),
fields: [
{ name: 'visits', type: 'int' },
{ name: 'month', type: 'string' }