2014-01-24 38 views
0

我開發了一個sencha touch應用程序,我下載的版本(2.3.1)的圖表,繪製和fx src文件夾爲空。我無法找到如何配置軟件包以下載或在何處下載所需的源代碼。Sencha touch 2.3.1 - 略圖

這是一個授權問題嗎?我看遍了網站,但無法找到它爲什麼缺少

回答

3

UPDATE的解釋:

因爲我回答這個問題,我創建了使用NVD3圖表一煎茶觸摸/ ExtJS的擴展。你可以在這裏得到延伸:https://github.com/woodenconsulting/OpenCharts-For-Sencha-Touch-and-ExtJS


你必須購買,可以在這裏完成的許可證:https://www.sencha.com/store/sencha-touch-bundle/

或者,您也可以將nvd3圖表。我已經使用了幾個sencha應用程序。你可以在這裏下載nvd3:http://nvd3.org/

這裏是煎茶使用nvd3容易BARCHART的例子:

Ext.define('MyApp.view.BarChart',{ 
    extend: 'Ext.Component', 

    xtype: 'barchart', 

    config: { 
     chartData:[], 
     layout:'fit', 
     height:'100%', 
     width:'100%' 
    }, 

    initialize: function(){ 
     // Init and add a bar chart 
     nv.addGraph(Ext.bind(function(){ 
      var chart = nv.models.discreteBarChart().x(function(d) { return d.label; }).y(function(d) { return d.value; }).staggerLabels(true).tooltips(false).showValues(true); 
      d3.select(this.innerElement.dom).append('svg').datum(this.getChartData()).transition().duration(500).call(chart); 

      nv.utils.windowResize(chart.update); 

      this.chart = chart; 

      return chart; 
     },this)); 
    } 
}); 

然後在你的控制器,你可以實例化它像這樣:

var averageTimeChart = Ext.create('MyApp.view.BarChart', { 
     chartData: [{ 
      key: 'Average Time Per Day', 
      values: data 
     }] 
    }); 
+0

謝謝非常! –

+0

@Jeff Wooden nvd3支持觸摸事件? –