1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    53
    Vote Rating
    0
    sandeepmnit35 is on a distinguished road

      0  

    Default Unanswered: Stacked :true not working for bar chart

    Unanswered: Stacked :true not working for bar chart


    I am creating a vertical chart with stacked:true but it is not putting the bar on top of each other even I added the stacked:true in the code.
    I am using sencha touch chart 2.0 .

    Any kind of input will help me.

    I am using below code:


    Ext.chart.Chart({
    store: store,
    renderTo: Ext.getBody(),
    flex: 1,
    shadow: true,
    autoShow: true,
    animate: { duration: 2000, delay: 0, easing: 'ease' },
    maxGutter: [10, 10],
    legend: {
    position: 'right'
    },
    axes: [
    {
    type: 'Numeric',
    position: 'left',
    fields: [RA.app.groupByValueBar[0],RA.app.groupByValueBar[1],RA.app.groupByValueBar[2],RA.app.groupByValueBar[3],'Other'],
    label: {
    renderer: Ext.util.Format.numberRenderer('0,0'),
    },
    minimum: 0,
    maximum: RA.app.Ymax
    },
    {
    type: 'Category',
    position: 'bottom',
    fields: RA.app.xs[RA.app.currentActivePanelIndex],
    title: RA.app.xs[RA.app.currentActivePanelIndex]
    }
    ],
    series: [{
    type: 'column',
    axis: 'bottom',
    highlight: true,
    stacked: true,
    xField: RA.app.xs[RA.app.currentActivePanelIndex],
    yField: [RA.app.groupByValueBar[0],RA.app.groupByValueBar[1],RA.app.groupByValueBar[2],RA.app.groupByValueBar[3],'Other'],
    showInLegend: true
    }], //close series
    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,408
    Answers
    3549
    Vote Rating
    851
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The Touch Charts 2 beta has been deprecated in favor of the new charts in ST 2.1
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    53
    Vote Rating
    0
    sandeepmnit35 is on a distinguished road

      0  

    Default


    But I am using 2.0 touch library so it should work.

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    53
    Vote Rating
    0
    sandeepmnit35 is on a distinguished road

      0  

    Default


    What changes I need to make to work it with 2.1 verrsion?

Thread Participants: 1

Tags for this Thread