0

JSONStore で Sencha Touch Charts を使用して、JSON、シリーズ、およびデータによって提供される情報からチャートを動的に表示しようとしています。これは、metaData プロパティを持つ ExtJS 3 で可能でした。

Sencha Touch Charts で同じことを達成するにはどうすればよいですか?

4

2 に答える 2

0
//    Am using ruby for the webservice calls.

// First u have to create model and store for that



// model 
 Ext.regModel('samplemodel', {
idProperty: 'name',
fields: [ { name: 'name', type: 'string' },
              { name: 'data', type: 'int' }
            ]
});

// store
Ext.regStore('SampleStore', {
model: 'samplemodel',
storeId: "sampleStoreID",
sorters: [ {
    property: 'name'
}]
});

// and create a variable for the store 

var sampleStore = Ext.getStore("SampleStore");

// call the webservice and store it in array,
// bind the response to the store,
// use the store variable in the chart.
于 2011-12-20T08:55:52.410 に答える
0

http://www.sencha.com/forum/showthread.php?161912-Dynamic-json-chart

于 2011-12-23T10:06:04.163 に答える