JavaScript EXTJS Pivot Grid with json data extjs pivot grid example,extjs pivot grid,extjs pivot grid

I am new to EXTJS. Now im trying to develop simple pivot grid example. my code is:

  Ext.onReady(function () {
  var myStore = new Ext.data.ArrayStore({
    autoLoad: true,
    fields: ['gender',
        { name: 'birthDecade', type: 'int' },
        { name: 'peoples', type: 'int' }
    ],

    url: 'countries.json'
});
var pivotGrid = new Ext.grid.PivotGrid({
    title: 'Number of people born per decade',
    width: 600,
    height: 91,
    renderTo: 'docbody',
    store: myStore,
    aggregator: 'count',

    topAxis: [
        {
            width: 80,
            dataIndex: 'birthDecade'
        }
    ],
    leftAxis: [
        {

            dataIndex: 'gender'
        }
    ],


});

});

JSON DATA :

 [["Male","2010","1"],
 ["Female","1940","2"],
 ["Male","1960","3"],
 ["Female","1980","4"],
 ["Female","2000","5"],
 ["Male","2010","5"],
 ["Male","2030","6"],
 ["Female","1000","7"]]

And output is : enter image description here

But i want to show data that i gave in json (3rd column.values-1,2,3,4,5,6,7). how to achieve it?.thanks in advance.

Answer:1

I'm trying to hide a div when the user clicks anywhere outside of the div with id "main". I am using vanilla Javascript and would prefer not to use jQuery. The code I have works well but whenever ...

I'm trying to hide a div when the user clicks anywhere outside of the div with id "main". I am using vanilla Javascript and would prefer not to use jQuery. The code I have works well but whenever ...

  1. hiding elements with javascript
  2. hiding div with javascript
  3. hiding javascript code
  4. hiding javascript
  5. hiding javascript source code
  6. hiding javascript from view source
  7. hiding javascript in image
  8. hiding javascript code view source
  9. hiding javascript in html
  10. hiding javascript from incompatible browsers
  11. hiding javascript from old browsers
  12. hiding html elements with javascript
  13. hiding a button with javascript
  14. hiding a href with javascript

I'm at a complete loss here. I'll provide what I currently have below, but for some reason, every iteration I try, something goes wrong...either the animation of scroll doesn't work but the other ...

I'm at a complete loss here. I'll provide what I currently have below, but for some reason, every iteration I try, something goes wrong...either the animation of scroll doesn't work but the other ...

Hi i have a link tag that i am creating from javascript. now i want to append a parameters to that link just like below example.so that when the user clicks that button it should go to that url along ...

Hi i have a link tag that i am creating from javascript. now i want to append a parameters to that link just like below example.so that when the user clicks that button it should go to that url along ...

  1. creating link with hyperlink
  2. creating link in html
  3. creating link in linux
  4. creating link in excel
  5. creating link in word
  6. creating link in unix
  7. creating link in word document
  8. creating link in instagram bio
  9. creating link in pdf
  10. creating link to folder
  11. creating link in ubuntu
  12. creating link to pdf file
  13. creating link in windows
  14. creating link in markdown
  15. creating link in excel sheet
  16. creating link in instagram post
  17. creating link in dropbox
  18. creating link in pdf document
  19. creating link in php
  20. creating link in html without underline

I want to know if there is any benefit in passing off db or other async calls to a worker process or processes. Specifically I'm using heroku and postgres. I've read up a good bit on node.js and how ...

I want to know if there is any benefit in passing off db or other async calls to a worker process or processes. Specifically I'm using heroku and postgres. I've read up a good bit on node.js and how ...

  1. using background worker
  2. using backgroundworker c#
  3. use backgroundworker class
  4. using background worker in vb.net