Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    22
    Vote Rating
    0
    Answers
    1
    maxycini is on a distinguished road

      0  

    Default Answered: Stacked bar charts in sencha

    Answered: Stacked bar charts in sencha


    Is it possible to create stacked column charts as given in the image below in sencha touch? If yes can somebody give a sample code for the same

    stacked_bar_chart.png

  2. Try with this

    Code:
    series: [{       type: 'column',
                        xField: 'name',
                       yField: ['data1', 'data2', 'data3'],
                       stacked: 'true',
                        axis: 'bottom',
                        highlight: true,
                        showInLegend: true
                    }]

  3. #2
    Sencha User
    Join Date
    Dec 2011
    Location
    Hyderabad, India
    Posts
    117
    Vote Rating
    5
    Answers
    6
    Naga is on a distinguished road

      0  

    Default


    Try with this

    Code:
    series: [{       type: 'column',
                        xField: 'name',
                       yField: ['data1', 'data2', 'data3'],
                       stacked: 'true',
                        axis: 'bottom',
                        highlight: true,
                        showInLegend: true
                    }]

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    22
    Vote Rating
    0
    Answers
    1
    maxycini is on a distinguished road

      0  

    Default


    Thanks a lot,

    I was able to create the stacked column chart

  5. #4
    Sencha User
    Join Date
    Aug 2012
    Posts
    7
    Vote Rating
    0
    mprajcs is on a distinguished road

      0  

    Default


    the column is changed the data in the xfield and y field is not changed it same as it before, the visualisation of the chart oly changed...

    Quote Originally Posted by Naga View Post
    Try with this

    Code:
    series: [{       type: 'column',
                        xField: 'name',
                       yField: ['data1', 'data2', 'data3'],
                       stacked: 'true',
                        axis: 'bottom',
                        highlight: true,
                        showInLegend: true
                    }]

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

      0  

    Default


    maxycini,

    Can you please share the working code with me?

    Thanks

  7. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    22
    Vote Rating
    0
    Answers
    1
    maxycini is on a distinguished road

      0  

    Default


    Sorry it was my mistake, when i applied the changes i saw the change in the graph and assumed its working. But when i observed in details the starcked bar chart was not coming.

    I feel as of now there is no way of creating a stacked bar chart in sencha.

Thread Participants: 3

Tags for this Thread