Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <link href="https://cdn.webdatarocks.com/latest/webdatarocks.min.css" rel="stylesheet"/>
<script src="https://cdn.webdatarocks.com/latest/webdatarocks.toolbar.min.js"></script>
<script src="https://cdn.webdatarocks.com/latest/webdatarocks.js"></script>

<div id="wdr-component"></div>
              
            
!

CSS

              
                
              
            
!

JS

              
                var pivot = new WebDataRocks({
    container: "#wdr-component",
    toolbar: true,
    height: 490,
    report: {
        "dataSource": {
            "data": getData()
        },
        "slice": {
            "rows": [{
                    "uniqueName": "Name",
                    "sort": "unsorted"
                },
                {
                    "uniqueName": "Gender",
                    "sort": "unsorted"
                },
                {
                    "uniqueName": "Company",
                    "sort": "unsorted"
                },
                {
                    "uniqueName": "Email",
                    "sort": "unsorted"
                },
                {
                    "uniqueName": "Balance",
                    "sort": "unsorted"
                },
                {
                    "uniqueName": "Phone",
                    "sort": "unsorted"
                },
                {
                    "uniqueName": "Address",
                    "sort": "unsorted"
                }
            ],
            "columns": [{
                "uniqueName": "Measures"
            }],
            "measures": [{
                "uniqueName": "Age",
                "aggregation": "average"
            }],
            "flatOrder": [
                "Name",
                "Gender",
                "Age",
                "Company",
                "Email",
                "Balance",
                "Phone",
                "Address"
            ]
        },
        "options": {
            "grid": {
                "type": "flat",
                "showTotals": "off",
                "showGrandTotals": "off"
            }
        },
        "formats": [{
            "name": "",
            "thousandsSeparator": " ",
            "decimalSeparator": ".",
            "decimalPlaces": 2,
            "maxSymbols": 20,
            "currencySymbol": "",
            "currencySymbolAlign": "left",
            "nullValue": " ",
            "infinityValue": "Infinity",
            "divideByZeroValue": "Infinity"
        }]
    }
});

function getData() {
    return [{
            "Name": {
                "type": "string"
            },
            "Gender": {
                "type": "string"
            },
            "Age": {
                "type": "number"
            },
            "Company": {
                "type": "string"
            },
            "Email": {
                "type": "string"
            },
            "Balance": {
                "type": "string"
            },
            "Phone": {
                "type": "string"
            },
            "Address": {
                "type": "string"
            }
        },
        {
            "_id": "5c87cbd64e5936b169bd7bcd",
            "Index": 0,
            "Guid": "1b8bcaf9-4b2f-4aa5-aa90-43b98bfb524c",
            "Balance": "$1,318.44",
            "Age": 30,
            "Name": "Beck Landry",
            "Gender": "male",
            "Company": "OVOLO",
            "Email": "becklandry@ovolo.com",
            "Phone": "+1 (904) 437-2352",
            "Address": "431 Garnet Street, Ruffin, Missouri, 5054"
        },
        {
            "_id": "5c87cbd65de8cd7ee5f09523",
            "Index": 1,
            "Guid": "6a0ebe92-425b-44c0-a3f7-140e4d2b196d",
            "Balance": "$3,108.27",
            "Age": 26,
            "Name": "Danielle Russell",
            "Gender": "female",
            "Company": "STELAECOR",
            "Email": "daniellerussell@stelaecor.com",
            "Phone": "+1 (929) 508-3586",
            "Address": "155 Hastings Street, Tyro, Maryland, 1367"
        },
        {
            "_id": "5c87cbd6677a78a94bd1b40f",
            "Index": 2,
            "Guid": "7f4c7111-f8ec-440f-a888-01478d72fc7e",
            "Balance": "$3,473.69",
            "Age": 32,
            "Name": "Sherri Bullock",
            "Gender": "female",
            "Company": "SCENTY",
            "Email": "sherribullock@scenty.com",
            "Phone": "+1 (902) 433-2279",
            "Address": "644 Bulwer Place, Jackpot, Utah, 8991"
        },
        {
            "_id": "5c87cbd6f564ffbdc68e7efa",
            "Index": 3,
            "Guid": "67272bab-76ff-4376-a4be-42fa762034ad",
            "Balance": "$3,503.37",
            "Age": 29,
            "Name": "Burke Mcdonald",
            "Gender": "male",
            "Company": "SOLGAN",
            "Email": "burkemcdonald@solgan.com",
            "Phone": "+1 (842) 572-2896",
            "Address": "769 Bradford Street, Limestone, Minnesota, 432"
        },
        {
            "_id": "5c87cbd6d52a50edae7a9642",
            "Index": 4,
            "Guid": "cff4d84f-ffa4-42c8-9222-a830daa68c8d",
            "Balance": "$1,833.80",
            "Age": 27,
            "Name": "Bessie Fitzgerald",
            "Gender": "female",
            "Company": "PREMIANT",
            "Email": "bessiefitzgerald@premiant.com",
            "Phone": "+1 (976) 473-2135",
            "Address": "637 Huron Street, Ripley, Arkansas, 9049"
        },
        {
            "_id": "5c87cbdbcc572127609a0519",
            "Index": 4,
            "Guid": "b6cb7712-f577-42c5-802f-737a66a31520",
            "Balance": "$1,212.76",
            "Age": 38,
            "Name": "Castaneda Mitchell",
            "Gender": "male",
            "Company": "LINGOAge",
            "Email": "castanedamitchell@lingoAge.com",
            "Phone": "+1 (840) 515-3700",
            "Address": "632 Neptune Avenue, Hobucken, Guam, 6490"
        },
        {
            "_id": "5c87cbdb483df592141aade5",
            "Index": 5,
            "Guid": "e9841bd2-d0ae-44f9-80d4-1a0df9f83843",
            "Balance": "$3,105.55",
            "Age": 38,
            "Name": "Mcintyre Burns",
            "Gender": "male",
            "Company": "YOGASM",
            "Email": "mcintyreburns@yogasm.com",
            "Phone": "+1 (914) 488-2141",
            "Address": "368 Macon Street, Denio, Maryland, 888"
        },
        {
            "_id": "5c87cbdb6a9559b85080b152",
            "Index": 6,
            "Guid": "362aebab-dc73-44d6-919c-b78eb9a57b4a",
            "Balance": "$2,216.79",
            "Age": 32,
            "Name": "Matilda Summers",
            "Gender": "female",
            "Company": "DANJA",
            "Email": "matildasummers@danja.com",
            "Phone": "+1 (844) 577-2665",
            "Address": "299 Harman Street, Hillsboro, Massachusetts, 2043"
        },
        {
            "_id": "5c87cbe82f99d067193663b9",
            "Index": 0,
            "Guid": "f8137904-c678-47c0-9935-8fd7ad18b769",
            "Balance": "$1,952.70",
            "Age": 34,
            "Name": "Ryan Leon",
            "Gender": "male",
            "Company": "CENTREE",
            "Email": "ryanleon@centree.com",
            "Phone": "+1 (909) 417-3101",
            "Address": "894 Crawford Avenue, Fowlerville, Tennessee, 8435"
        },
        {
            "_id": "5c87cbe88a5eb46a1807cdc7",
            "Index": 1,
            "Guid": "389ca8c2-2e35-42c5-aa32-62ffaf39e0fd",
            "Balance": "$1,801.19",
            "Age": 21,
            "Name": "Kerri Perry",
            "Gender": "female",
            "Company": "XANIDE",
            "Email": "kerriperry@xanide.com",
            "Phone": "+1 (811) 500-2861",
            "Address": "463 Ocean Avenue, Chamizal, New York, 6175"
        },
        {
            "_id": "5c87cbe8409bf68cc7e770cf",
            "Index": 2,
            "Guid": "b71a0c76-4359-41a0-a0a6-c82a42e9d787",
            "Balance": "$3,918.10",
            "Age": 33,
            "Name": "Ratliff Mercer",
            "Gender": "male",
            "Company": "EARBANG",
            "Email": "ratliffmercer@earbang.com",
            "Phone": "+1 (939) 551-2537",
            "Address": "963 Narrows Avenue, Orick, Vermont, 3414"
        },
        {
            "_id": "5c87cbe805d2d1e15efbebe4",
            "Index": 3,
            "Guid": "e8819bca-f7f6-4600-84b0-a21e5e130d39",
            "Balance": "$3,724.59",
            "Age": 36,
            "Name": "Kim Velasquez",
            "Gender": "male",
            "Company": "COMSTAR",
            "Email": "kimvelasquez@comstar.com",
            "Phone": "+1 (881) 560-2383",
            "Address": "877 Ludlam Place, Websterville, Puerto Rico, 6171"
        }
    ]
}
              
            
!
999px

Console