Results 1 to 3 of 3

Thread: handling complex data into Bar chart

    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    That's not valid JavaScript, don't you get an error?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    0
      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,

Posting Permissions

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