2014-01-24 40 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支持触摸事件? –