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

      0  

    Default Unanswered: handling complex data into Bar chart

    Unanswered: handling complex data into Bar chart


    Hi guys,

    I want to show the following data in a bar chart,what configurations should i make in order to do that (Fields,xField,yField....) :

    Code:
    data: [
                {'name':'Janvier', [{{'projet' : 'DyarAlbaydaa'} : {'venteM' : '10'}},{{'projet' : 'ResideceAlMansour'} : {'venteM' : '100'}}]},
                {'name':'Fevrier', [{{'projet' : 'DyarAlbaydaa'} : {'venteM' : '20'}},{{'projet' : 'ResideceAlMansour'} : {'venteM' : '80'}}]},
                {'name':'Mars', [{{'projet' : 'DyarAlbaydaa'} : {'venteM' : '30'}},{{'projet' : 'ResideceAlMansour'} : {'venteM' : '60'}}]},
                {'name':'Avril', [{{'projet' : 'DyarAlbaydaa'} : {'venteM' : '40'}},{{'projet' : 'ResideceAlMansour'} : {'venteM' : '40'}}]},
                {'name':'Mai', [{{'projet' : 'DyarAlbaydaa'} : {'venteM' : '50'}},{{'projet' : 'ResideceAlMansour'} : {'venteM' : '20'}}]}
                 
             ]

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,399
    Answers
    3549
    Vote Rating
    849
    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


    That's not valid JavaScript, don't you get an error?
    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
    Apr 2012
    Posts
    2
    Vote Rating
    0
    a.boufrit is on a distinguished road

      0  

    Default


    Thanks mitchellsimoens for ur reply...yes i got javascript error,but how can make a bar char handling complex data ( objects containing other objects,like : { 'month' : 'March' , {'project' : 'Dyar'}:{'sales' : '23'} } ).

    Thanks,

Thread Participants: 1