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.

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": {
            "dataSourceType": "json",
            "data": getData()
        },
        "slice": {
        "rows": [
            {
                "uniqueName": "competitorname"
            }
        ],
        "columns": [
            {
                "uniqueName": "Measures"
            }
        ],
        "measures": [
            {
                "uniqueName": "winpercent",
                "aggregation": "sum",
                "format": "3q94pnv1"
            },
            {
                "uniqueName": "sugarpercent",
                "aggregation": "sum",
                "format": "3q94q28g"
            },
            {
                "uniqueName": "pricepercent",
                "aggregation": "sum",
                "format": "3q94qedv"
            }
        ]
    },
    "conditions": [
        {
            "formula": "#value > .90",
            "measure": "sugarpercent",
            "format": {
                "backgroundColor": "#de0000",
                "color": "#FFFFFF",
                "fontFamily": "Arial",
                "fontSize": "12px"
            }
        }
    ],
    "formats": [
        {
            "name": "3q94pnv1",
            "thousandsSeparator": " ",
            "decimalSeparator": ".",
            "decimalPlaces": 2,
            "currencySymbol": "%",
            "currencySymbolAlign": "right",
            "nullValue": "",
            "textAlign": "right",
            "isPercent": false
        },
        {
            "name": "3q94q28g",
            "thousandsSeparator": " ",
            "decimalSeparator": ".",
            "decimalPlaces": 2,
            "currencySymbol": "",
            "currencySymbolAlign": "left",
            "nullValue": "",
            "textAlign": "right",
            "isPercent": true
        },
        {
            "name": "3q94qedv",
            "thousandsSeparator": " ",
            "decimalSeparator": ".",
            "decimalPlaces": 2,
            "currencySymbol": "",
            "currencySymbolAlign": "left",
            "nullValue": "",
            "textAlign": "right",
            "isPercent": true
        }
    ]
    }
});

function getData() {
  return [
    {
    "competitorname": {"type": "string"},
    "chocolate": {"type": "number"},
    "fruity": {"type": "number"},
    "caramel": {"type": "number"},
    "peanutyalmondy": {"type": "number"},
    "nougat": {"type": "number"},
    "crispedricewafer": {"type": "number"},
    "hard": {"type": "number"},
    "bar": {"type": "number"},
    "pluribus": {"type": "number"},
    "sugarpercent": {"type": "number"},
    "pricepercent": {"type": "number"},
    "winpercent": {"type": "number"}
  },
  {
    "competitorname": "100 Grand",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".73199999",
    "pricepercent": ".86000001",
    "winpercent": 66.971725
  },
  {
    "competitorname": "3 Musketeers",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".51099998",
    "winpercent": 67.602936
  },
  {
    "competitorname": "One dime",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".011",
    "pricepercent": ".116",
    "winpercent": 32.261086
  },
  {
    "competitorname": "One quarter",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".011",
    "pricepercent": ".51099998",
    "winpercent": 46.116505
  },
  {
    "competitorname": "Air Heads",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".90600002",
    "pricepercent": ".51099998",
    "winpercent": 52.341465
  },
  {
    "competitorname": "Almond Joy",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".465",
    "pricepercent": ".76700002",
    "winpercent": 50.347546
  },
  {
    "competitorname": "Baby Ruth",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 1,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".76700002",
    "winpercent": 56.914547
  },
  {
    "competitorname": "Boston Baked Beans",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".31299999",
    "pricepercent": ".51099998",
    "winpercent": 23.417824
  },
  {
    "competitorname": "Candy Corn",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".90600002",
    "pricepercent": ".32499999",
    "winpercent": 38.010963
  },
  {
    "competitorname": "Caramel Apple Pops",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".32499999",
    "winpercent": 34.517681
  },
  {
    "competitorname": "Charleston Chew",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".51099998",
    "winpercent": 38.975037
  },
  {
    "competitorname": "Chewey Lemonhead Fruit Mix",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".73199999",
    "pricepercent": ".51099998",
    "winpercent": 36.017628
  },
  {
    "competitorname": "Chiclets",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".046",
    "pricepercent": ".32499999",
    "winpercent": 24.524988
  },
  {
    "competitorname": "Dots",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".73199999",
    "pricepercent": ".51099998",
    "winpercent": 42.272076
  },
  {
    "competitorname": "Dum Dums",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".73199999",
    "pricepercent": ".034000002",
    "winpercent": 39.460556
  },
  {
    "competitorname": "Fruit Chews",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".127",
    "pricepercent": ".034000002",
    "winpercent": 43.088924
  },
  {
    "competitorname": "Fun Dip",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".73199999",
    "pricepercent": ".32499999",
    "winpercent": 39.185505
  },
  {
    "competitorname": "Gobstopper",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".90600002",
    "pricepercent": ".45300001",
    "winpercent": 46.783348
  },
  {
    "competitorname": "Haribo Gold Bears",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".465",
    "pricepercent": ".465",
    "winpercent": 57.11974
  },
  {
    "competitorname": "Haribo Happy Cola",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".465",
    "pricepercent": ".465",
    "winpercent": 34.158958
  },
  {
    "competitorname": "Haribo Sour Bears",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".465",
    "pricepercent": ".465",
    "winpercent": 51.41243
  },
  {
    "competitorname": "Haribo Twin Snakes",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".465",
    "pricepercent": ".465",
    "winpercent": 42.178772
  },
  {
    "competitorname": "HersheyÕs Kisses",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".127",
    "pricepercent": ".093000002",
    "winpercent": 55.375454
  },
  {
    "competitorname": "HersheyÕs Krackel",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".43000001",
    "pricepercent": ".91799998",
    "winpercent": 62.284481
  },
  {
    "competitorname": "HersheyÕs Milk Chocolate",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".43000001",
    "pricepercent": ".91799998",
    "winpercent": 56.490501
  },
  {
    "competitorname": "HersheyÕs Special Dark",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".43000001",
    "pricepercent": ".91799998",
    "winpercent": 59.236122
  },
  {
    "competitorname": "Jawbusters",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".093000002",
    "pricepercent": ".51099998",
    "winpercent": 28.127439
  },
  {
    "competitorname": "Junior Mints",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".197",
    "pricepercent": ".51099998",
    "winpercent": 57.21925
  },
  {
    "competitorname": "Kit Kat",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".31299999",
    "pricepercent": ".51099998",
    "winpercent": 76.7686
  },
  {
    "competitorname": "Laffy Taffy",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".22",
    "pricepercent": ".116",
    "winpercent": 41.389557
  },
  {
    "competitorname": "Lemonhead",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".046",
    "pricepercent": ".104",
    "winpercent": 39.141056
  },
  {
    "competitorname": "Lifesavers big ring gummies",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".26699999",
    "pricepercent": ".27900001",
    "winpercent": 52.911392
  },
  {
    "competitorname": "Peanut butter M&MÕs",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".82499999",
    "pricepercent": ".65100002",
    "winpercent": 71.46505
  },
  {
    "competitorname": "M&MÕs",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".82499999",
    "pricepercent": ".65100002",
    "winpercent": 66.574585
  },
  {
    "competitorname": "Mike & Ike",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".87199998",
    "pricepercent": ".32499999",
    "winpercent": 46.411716
  },
  {
    "competitorname": "Milk Duds",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".30199999",
    "pricepercent": ".51099998",
    "winpercent": 55.064072
  },
  {
    "competitorname": "Milky Way",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".65100002",
    "winpercent": 73.099556
  },
  {
    "competitorname": "Milky Way Midnight",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".73199999",
    "pricepercent": ".44100001",
    "winpercent": 60.800701
  },
  {
    "competitorname": "Milky Way Simply Caramel",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".96499997",
    "pricepercent": ".86000001",
    "winpercent": 64.35334
  },
  {
    "competitorname": "Mounds",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".31299999",
    "pricepercent": ".86000001",
    "winpercent": 47.829754
  },
  {
    "competitorname": "Mr Good Bar",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".31299999",
    "pricepercent": ".91799998",
    "winpercent": 54.526451
  },
  {
    "competitorname": "Nerds",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".84799999",
    "pricepercent": ".32499999",
    "winpercent": 55.354046
  },
  {
    "competitorname": "Nestle Butterfinger",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".76700002",
    "winpercent": 70.735641
  },
  {
    "competitorname": "Nestle Crunch",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".31299999",
    "pricepercent": ".76700002",
    "winpercent": 66.47068
  },
  {
    "competitorname": "Nik L Nip",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".197",
    "pricepercent": ".97600001",
    "winpercent": 22.445341
  },
  {
    "competitorname": "Now & Later",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".22",
    "pricepercent": ".32499999",
    "winpercent": 39.4468
  },
  {
    "competitorname": "Payday",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".465",
    "pricepercent": ".76700002",
    "winpercent": 46.296597
  },
  {
    "competitorname": "Peanut M&Ms",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".59299999",
    "pricepercent": ".65100002",
    "winpercent": 69.483788
  },
  {
    "competitorname": "Pixie Sticks",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".093000002",
    "pricepercent": ".023",
    "winpercent": 37.722336
  },
  {
    "competitorname": "Pop Rocks",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".60399997",
    "pricepercent": ".83700001",
    "winpercent": 41.265511
  },
  {
    "competitorname": "Red vines",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".58099997",
    "pricepercent": ".116",
    "winpercent": 37.348522
  },
  {
    "competitorname": "ReeseÕs Miniatures",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".034000002",
    "pricepercent": ".27900001",
    "winpercent": 81.866257
  },
  {
    "competitorname": "ReeseÕs Peanut Butter cup",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".72000003",
    "pricepercent": ".65100002",
    "winpercent": 84.18029
  },
  {
    "competitorname": "ReeseÕs pieces",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".40599999",
    "pricepercent": ".65100002",
    "winpercent": 73.43499
  },
  {
    "competitorname": "ReeseÕs stuffed with pieces",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".98799998",
    "pricepercent": ".65100002",
    "winpercent": 72.887901
  },
  {
    "competitorname": "Ring pop",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".73199999",
    "pricepercent": ".96499997",
    "winpercent": 35.290756
  },
  {
    "competitorname": "Rolo",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".86000001",
    "pricepercent": ".86000001",
    "winpercent": 65.716286
  },
  {
    "competitorname": "Root Beer Barrels",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".73199999",
    "pricepercent": ".068999998",
    "winpercent": 29.703691
  },
  {
    "competitorname": "Runts",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".87199998",
    "pricepercent": ".27900001",
    "winpercent": 42.849144
  },
  {
    "competitorname": "Sixlets",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".22",
    "pricepercent": ".081",
    "winpercent": 34.722
  },
  {
    "competitorname": "Skittles original",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".94099998",
    "pricepercent": ".22",
    "winpercent": 63.08514
  },
  {
    "competitorname": "Skittles wildberry",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".94099998",
    "pricepercent": ".22",
    "winpercent": 55.103695
  },
  {
    "competitorname": "Nestle Smarties",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".26699999",
    "pricepercent": ".97600001",
    "winpercent": 37.887188
  },
  {
    "competitorname": "Smarties candy",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".26699999",
    "pricepercent": ".116",
    "winpercent": 45.995827
  },
  {
    "competitorname": "Snickers",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 1,
    "nougat": 1,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".546",
    "pricepercent": ".65100002",
    "winpercent": 76.673782
  },
  {
    "competitorname": "Snickers Crisper",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 1,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".65100002",
    "winpercent": 59.529251
  },
  {
    "competitorname": "Sour Patch Kids",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".068999998",
    "pricepercent": ".116",
    "winpercent": 59.863998
  },
  {
    "competitorname": "Sour Patch Tricksters",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".068999998",
    "pricepercent": ".116",
    "winpercent": 52.825947
  },
  {
    "competitorname": "Starburst",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".15099999",
    "pricepercent": ".22",
    "winpercent": 67.037628
  },
  {
    "competitorname": "Strawberry bon bons",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".56900001",
    "pricepercent": ".057999998",
    "winpercent": 34.578991
  },
  {
    "competitorname": "Sugar Babies",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".96499997",
    "pricepercent": ".76700002",
    "winpercent": 33.43755
  },
  {
    "competitorname": "Sugar Daddy",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".41800001",
    "pricepercent": ".32499999",
    "winpercent": 32.230995
  },
  {
    "competitorname": "Super Bubble",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".162",
    "pricepercent": ".116",
    "winpercent": 27.303865
  },
  {
    "competitorname": "Swedish Fish",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".60399997",
    "pricepercent": ".755",
    "winpercent": 54.861111
  },
  {
    "competitorname": "Tootsie Pop",
    "chocolate": 1,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".60399997",
    "pricepercent": ".32499999",
    "winpercent": 48.982651
  },
  {
    "competitorname": "Tootsie Roll Juniors",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".31299999",
    "pricepercent": ".51099998",
    "winpercent": 43.068897
  },
  {
    "competitorname": "Tootsie Roll Midgies",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".17399999",
    "pricepercent": ".011",
    "winpercent": 45.736748
  },
  {
    "competitorname": "Tootsie Roll Snack Bars",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".465",
    "pricepercent": ".32499999",
    "winpercent": 49.653503
  },
  {
    "competitorname": "Trolli Sour Bites",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".31299999",
    "pricepercent": ".255",
    "winpercent": 47.173229
  },
  {
    "competitorname": "Twix",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 1,
    "pluribus": 0,
    "sugarpercent": ".546",
    "pricepercent": ".90600002",
    "winpercent": 81.642914
  },
  {
    "competitorname": "Twizzlers",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".22",
    "pricepercent": ".116",
    "winpercent": 45.466282
  },
  {
    "competitorname": "Warheads",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".093000002",
    "pricepercent": ".116",
    "winpercent": 39.011898
  },
  {
    "competitorname": "WelchÕs Fruit Snacks",
    "chocolate": 0,
    "fruity": 1,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".31299999",
    "pricepercent": ".31299999",
    "winpercent": 44.375519
  },
  {
    "competitorname": "WertherÕs Original Caramel",
    "chocolate": 0,
    "fruity": 0,
    "caramel": 1,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 0,
    "hard": 1,
    "bar": 0,
    "pluribus": 0,
    "sugarpercent": ".186",
    "pricepercent": ".26699999",
    "winpercent": 41.904308
  },
  {
    "competitorname": "Whoppers",
    "chocolate": 1,
    "fruity": 0,
    "caramel": 0,
    "peanutyalmondy": 0,
    "nougat": 0,
    "crispedricewafer": 1,
    "hard": 0,
    "bar": 0,
    "pluribus": 1,
    "sugarpercent": ".87199998",
    "pricepercent": ".84799999",
    "winpercent": 49.524113
  }
]
}
            
          
!
999px

Console