我嘗試了一段時間來將圖形繪製到我的sencha touch 2應用程序中,但是我無法做到,sencha圖表與ST2不兼容。所以我搜索並存在很多APIS來製作圖表,現在問題是將此apis整合到sencha touch中。谷歌圖表API到Sencha Touch 2
我看到谷歌圖表api,很簡單,但我怎麼能顯示它?我需要像html的視圖。
有一個簡單的代碼:https://google-developers.appspot.com/chart/interactive/docs/quick_start
我怎麼能顯示出這些代碼到這個:
this.getHistorial().push({ // Is a new view in a Ext.navigation.View
xtype: 'panel',
title: record.get('title'),
layout: 'fit',
htmlContent: true,
items: [
{
html:[
//Show chart (Google API)
].join('')
}
]
});
也許,如果我可以作出這樣到HTML:[]顯示一個小文件的HTML(如一個網站),只是呈現我的應用程序。我該怎麼做?