JSONStoreでSencha Touch Chartを使用して、JSON、シリーズ、データから提供された情報からチャートを動的に表示しようとしています。これは、metaDataプロパティを持つExtJS 3で可能でした。ダイナミックjsonチャート
Sencha Touch Chartで同じことを達成するにはどうすればよいですか?
JSONStoreでSencha Touch Chartを使用して、JSON、シリーズ、データから提供された情報からチャートを動的に表示しようとしています。これは、metaDataプロパティを持つExtJS 3で可能でした。ダイナミックjsonチャート
Sencha Touch Chartで同じことを達成するにはどうすればよいですか?
// 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.