Results 1 to 2 of 2

Thread: how to integration sencha chart 2 with sencha touch 2

  1. #1

    Default how to integration sencha chart 2 with sencha touch 2

    how to integration sencha chart 2 with sencha touch 2

    please reply any one to know

    thanks in advance

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default

    Hi chandu,

    Try the following code -

    chart-
    Code:
    Ext.define('touchChart', {
    extend: 'Ext.Container',
    alias : 'widget.touchChart',
    xtype : 'touchChart',
    config:
        {
          fullscreen: true,
          width: 500,
          height: 300,
         animate: true,
         store: store,
         axes: [{
         type: 'Numeric',
         position: 'bottom',
         fields: ['data1', 'data2'],
         title: 'Sample Values',
         grid: true,
         minimum: 0
     }, {
         type: 'Category',
         position: 'left',
         fields: ['name'],
         title: 'Sample Metrics'
    }],
    series: [{
         type: 'column',
         axis: 'left',
         highlight: true,
         label: {
        display: 'insideEnd',
          'text-anchor': 'middle',
          field: ['data1', 'data2'],
         orientation: 'vertical',
          color: '#333'
    },
        xField: 'name',
        yField: ['data1', 'data2']
    }],
    interactions: [{
       type: 'togglestacked'
    
    }]
    }
    });
    panel
    Code:
    xtype: 'panel',
    height: '400',
    layout: {
        type:'vbox',
        align:'stretch'
    },
    items:[
      {
        xtype: 'touchChart',
        flex:1
       }
    ]
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •