Side-by-side bar chart for categorical data
Side-by-side (clustered) bar chart for categorical data. Two columns are displayed right next to each other for each category, allowing to quickly compare differences between both series. This is the default FacetChart behavior when multiple series with 'column' type are present.
HTML
HTML
<script src="https://cdn.zoomcharts-cloud.com/1/nightly/zoomcharts.js"></script>
<div id="demo"></div>
CSS
CSS
//No CSS for this example
JavaScript
JavaScript
chart= new FacetChart({
"series": [
{
"name": "2006",
"data": {
"field": "2006",
"aggregation": "avg"
},
"style": {
"fillColor": "#2fc32f"
},
"type": "columns"
},
{
"name": "2007",
"data": {
"field": "2007",
"aggregation": "avg"
},
"style": {
"fillColor": "#b0dc0b"
},
"type": "columns"
},
{
"name": "2008",
"data": {
"field": "2008",
"aggregation": "avg"
},
"style": {
"lineColor": "#eab404"
},
"type": "columns"
},
{
"name": "2009",
"data": {
"field": "2009",
"aggregation": "avg"
},
"style": {
"lineColor": "#56b9f7"
},
"type": "columns"
}
],
"container": "demo",
"data": [
{
"url": "/dvsl/data/extra/us-economy.json"
}
],
"toolbar": {
"fullscreen": true,
"enabled": true
},
"interaction": {
"resizing": {
"enabled": false
}
}
})
Data
Data
Download Data
{
"subvalues": [
{
"name": "Agriculture, forestry, fishing, and hunting",
"value": "445.5",
"2010": "372.8",
"subvalues": [
{
"name": "Farms",
"value": "396.2",
"2006": "255.8",
"2007": "302.5",
"2005": "253",
"2008": "336.1",
"2009": "301.2",
"2011": "383.9",
"2010": "328.2",
"2012": "396.2"
},
{
"name": "Forestry, fishing, and related activities",
"value": "49.3",
"2006": "47.7",
"2007": "44.5",
"2005": "46.6",
"2008": "44.4",
"2009": "40.8",
"2011": "47.3",
"2010": "44.5",
"2012": "49.3"
}
],
"2006": "303.5",
"2007": "346.9",
"2005": "299.6",
"2008": "380.5",
"2009": "341.9",
"2011": "431.2",
"id": "Agriculture, forestry, fishing, and hunting",
"2012": "445.5"
},
{
"name": "Mining",
"value": "572.3",
"2010": "463.3",
"subvalues": [
{
"name": "Oil and gas extraction",
"value": "352.1",
"2006": "271",
"2007": "293.6",
"2005": "260.6",
"2008": "395.4",
"2009": "223.6",
"2011": "347",
"2010": "289.7",
"2012": "352.1"
},
{
"name": "Mining, except oil and gas",
"value": "130.2",
"2006": "99.4",
"2007": "103.6",
"2005": "83.9",
"2008": "116.5",
"2009": "104.4",
"2011": "126.7",
"2010": "114.7",
"2012": "130.2"
},
{
"name": "Support activities for mining",
"value": "90.1",
"2006": "69.5",
"2007": "74.2",
"2005": "47.3",
"2008": "80.5",
"2009": "52.4",
"2011": "76.6",
"2010": "58.9",
"2012": "90.1"
}
],
"2006": "439.9",
"2007": "471.4",
"2005": "391.8",
"2008": "592.4",
"2009": "380.4",
"2011": "550.4",
"id": "Mining",
"2012": "572.3"
},
{
"name": "Utilities",
"value": "378.1",
"2006": "410.1",
"2007": "438.2",
"2005": "408.2",
"2008": "490.4",
"2009": "389.3",
"2011": "398.8",
"2010": "423.5",
"2012": "378.1"
},
{
"name": "Construction",
"value": "1065.9",
"2006": "1345",
"2007": "1329.4",
"2005": "1280.1",
"2008": "1266",
"2009": "1090.4",
"2011": "1004.1",
"2010": "1008.3",
"2012": "1065.9"
},
{
"name": "Manufacturing",
"value": "5800.7",
"2010": "4988.7",
"subvalues": [
{
"name": "Durable goods",
"value": "2773.1",
"2010": "2366.5",
"subvalues": [
{
"name": "Wood products",
"value": "76.5",
"2006": "112.8",
"2007": "101.1",
"2005": "113.1",
"2008": "87.5",
"2009": "64.4",
"2011": "71",
"2010": "70.3",
"2012": "76.5"
},
{
"name": "Nonmetallic mineral products",
"value": "96",
"2006": "124.9",
"2007": "126.7",
"2005": "112.3",
"2008": "113.5",
"2009": "88.9",
"2011": "92.5",
"2010": "90.7",
"2012": "96"
},
{
"name": "Primary metals",
"value": "300.6",
"2006": "232.5",
"2007": "255.5",
"2005": "201.8",
"2008": "279.6",
"2009": "166",
"2011": "281.3",
"2010": "234.1",
"2012": "300.6"
},
{
"name": "Fabricated metal products",
"value": "344.8",
"2006": "315.5",
"2007": "341.1",
"2005": "286.9",
"2008": "356.7",
"2009": "280.4",
"2011": "329.8",
"2010": "295",
"2012": "344.8"
},
{
"name": "Machinery",
"value": "394",
"2006": "324.8",
"2007": "345.2",
"2005": "300.6",
"2008": "351.5",
"2009": "284.3",
"2011": "364.9",
"2010": "315.8",
"2012": "394"
},
{
"name": "Computer and electronic products",
"value": "380.5",
"2006": "412.7",
"2007": "431.1",
"2005": "398.4",
"2008": "419.7",
"2009": "353.4",
"2011": "376.7",
"2010": "368.7",
"2012": "380.5"
},
{
"name": "Electrical equipment, appliances, and components",
"value": "121.1",
"2006": "117.2",
"2007": "126.6",
"2005": "109.2",
"2008": "126.4",
"2009": "101.8",
"2011": "118",
"2010": "108.3",
"2012": "121.1"
},
{
"name": "Motor vehicles, bodies and trailers, and parts",
"value": "531.7",
"2006": "524.5",
"2007": "513.4",
"2005": "523.8",
"2008": "421.1",
"2009": "320",
"2011": "482.3",
"2010": "422.7",
"2012": "531.7"
},
{
"name": "Other transportation equipment",
"value": "300.1",
"2006": "212.8",
"2007": "261.3",
"2005": "201.6",
"2008": "270.7",
"2009": "250.1",
"2011": "251.8",
"2010": "248.1",
"2012": "300.1"
},
{
"name": "Furniture and related products",
"value": "63.3",
"2006": "85.3",
"2007": "83",
"2005": "84.1",
"2008": "77.2",
"2009": "59.7",
"2011": "59.7",
"2010": "57.6",
"2012": "63.3"
},
{
"name": "Miscellaneous manufacturing",
"value": "164.5",
"2006": "150.3",
"2007": "151.9",
"2005": "142.8",
"2008": "158.3",
"2009": "149.3",
"2011": "160",
"2010": "155.2",
"2012": "164.5"
}
],
"2006": "2613.2",
"2007": "2736.9",
"2005": "2474.5",
"2008": "2662.3",
"2009": "2118.4",
"2011": "2588.2",
"id": "Durable goods",
"2012": "2773.1"
},
{
"name": "Nondurable goods",
"value": "3027.5",
"2010": "2622.2",
"subvalues": [
{
"name": "Food and beverage and tobacco products",
"value": "884.8",
"2006": "664.7",
"2007": "715.6",
"2005": "659.5",
"2008": "773",
"2009": "771.5",
"2011": "865.6",
"2010": "800.1",
"2012": "884.8"
},
{
"name": "Textile mills and textile product mills",
"value": "52.8",
"2006": "70.8",
"2007": "62.9",
"2005": "76.1",
"2008": "57.2",
"2009": "46",
"2011": "52.5",
"2010": "49.7",
"2012": "52.8"
},
{
"name": "Apparel and leather and allied products",
"value": "20.2",
"2006": "34.5",
"2007": "26.7",
"2005": "36.8",
"2008": "21.5",
"2009": "17.7",
"2011": "19.9",
"2010": "18.6",
"2012": "20.2"
},
{
"name": "Paper products",
"value": "172.8",
"2006": "167.4",
"2007": "174.1",
"2005": "159.9",
"2008": "177.1",
"2009": "160",
"2011": "174.5",
"2010": "168.7",
"2012": "172.8"
},
{
"name": "Printing and related support activities",
"value": "82.2",
"2006": "101",
"2007": "103.9",
"2005": "98.9",
"2008": "99.3",
"2009": "83.8",
"2011": "83.7",
"2010": "83.5",
"2012": "82.2"
},
{
"name": "Petroleum and coal products",
"value": "810.2",
"2006": "533.5",
"2007": "602",
"2005": "458.4",
"2008": "731.6",
"2009": "479.4",
"2011": "806.9",
"2010": "601.7",
"2012": "810.2"
},
{
"name": "Chemical products",
"value": "794.2",
"2006": "658.7",
"2007": "727.7",
"2005": "609.5",
"2008": "735.6",
"2009": "622.6",
"2011": "782.1",
"2010": "714.8",
"2012": "794.2"
},
{
"name": "Plastics and rubber products",
"value": "210.3",
"2006": "208.5",
"2007": "205.3",
"2005": "196.9",
"2008": "197.4",
"2009": "166.2",
"2011": "199.9",
"2010": "185.1",
"2012": "210.3"
}
],
"2006": "2439.1",
"2007": "2618.1",
"2005": "2296.2",
"2008": "2792.7",
"2009": "2347.1",
"2011": "2985.1",
"id": "Nondurable goods",
"2012": "3027.5"
}
],
"2006": "5052.3",
"2007": "5355",
"2005": "4770.6",
"2008": "5454.9",
"2009": "4465.5",
"2011": "5573.3",
"id": "Manufacturing",
"2012": "5800.7"
},
{
"name": "Wholesale trade",
"value": "1413.1",
"2006": "1196.5",
"2007": "1269.5",
"2005": "1116.8",
"2008": "1311.4",
"2009": "1092",
"2011": "1354.4",
"2010": "1253.1",
"2012": "1413.1"
},
{
"name": "Retail trade",
"value": "1478.1",
"2010": "1327.3",
"subvalues": [
{
"name": "Motor vehicle and parts dealers",
"value": "249.1",
"2006": "214",
"2007": "214.2",
"2005": "211.4",
"2008": "187.2",
"2009": "153.2",
"2011": "212",
"2010": "206.6",
"2012": "249.1"
},
{
"name": "Food and beverage stores",
"value": "217.9",
"2006": "184.2",
"2007": "186.9",
"2005": "174.4",
"2008": "194.3",
"2009": "191.9",
"2011": "208.1",
"2010": "198.9",
"2012": "217.9"
},
{
"name": "General merchandise stores",
"value": "223.2",
"2006": "184.3",
"2007": "193.9",
"2005": "179.5",
"2008": "200.1",
"2009": "208.7",
"2011": "215.2",
"2010": "216.6",
"2012": "223.2"
},
{
"name": "Other retail",
"value": "787.8",
"2006": "712.6",
"2007": "725.6",
"2005": "668.4",
"2008": "699.2",
"2009": "668.7",
"2011": "739.5",
"2010": "705.3",
"2012": "787.8"
}
],
"2006": "1295.1",
"2007": "1320.7",
"2005": "1233.7",
"2008": "1280.7",
"2009": "1222.5",
"2011": "1374.8",
"id": "Retail trade",
"2012": "1478.1"
},
{
"name": "Transportation and warehousing",
"value": "965.3",
"2010": "844.8",
"subvalues": [
{
"name": "Air transportation",
"value": "172.8",
"2006": "145.1",
"2007": "156",
"2005": "133.6",
"2008": "165",
"2009": "136.3",
"2011": "171.4",
"2010": "153.6",
"2012": "172.8"
},
{
"name": "Rail transportation",
"value": "79.4",
"2006": "59.3",
"2007": "61.9",
"2005": "52.6",
"2008": "69.5",
"2009": "55.4",
"2011": "76.2",
"2010": "67",
"2012": "79.4"
},
{
"name": "Water transportation",
"value": "56.9",
"2006": "42.2",
"2007": "48.3",
"2005": "39.3",
"2008": "54.7",
"2009": "49.2",
"2011": "56.1",
"2010": "54",
"2012": "56.9"
},
{
"name": "Truck transportation",
"value": "299.5",
"2006": "276.7",
"2007": "283.2",
"2005": "259.7",
"2008": "287.6",
"2009": "233.2",
"2011": "281.4",
"2010": "253.4",
"2012": "299.5"
},
{
"name": "Transit and ground passenger transportation",
"value": "51.4",
"2006": "42.3",
"2007": "44.8",
"2005": "36.9",
"2008": "45.3",
"2009": "45.1",
"2011": "48.2",
"2010": "45.5",
"2012": "51.4"
},
{
"name": "Pipeline transportation",
"value": "28.8",
"2006": "24.4",
"2007": "25.9",
"2005": "23",
"2008": "29.4",
"2009": "24",
"2011": "28",
"2010": "26.2",
"2012": "28.8"
},
{
"name": "Other transportation and support activities",
"value": "193.1",
"2006": "166.6",
"2007": "177.8",
"2005": "151.7",
"2008": "183.3",
"2009": "159.2",
"2011": "183.8",
"2010": "168.7",
"2012": "193.1"
},
{
"name": "Warehousing and storage",
"value": "83.3",
"2006": "61.5",
"2007": "69",
"2005": "53.2",
"2008": "73",
"2009": "71.1",
"2011": "80.9",
"2010": "76.3",
"2012": "83.3"
}
],
"2006": "818",
"2007": "866.9",
"2005": "749.9",
"2008": "907.9",
"2009": "773.5",
"2011": "925.9",
"id": "Transportation and warehousing",
"2012": "965.3"
},
{
"name": "Information",
"value": "1377.8",
"2010": "1252.8",
"subvalues": [
{
"name": "Publishing industries, except internet (includes software)",
"value": "303.1",
"2006": "292.6",
"2007": "304.4",
"2005": "283.2",
"2008": "308.1",
"2009": "286.6",
"2011": "297.3",
"2010": "288.2",
"2012": "303.1"
},
{
"name": "Motion picture and sound recording industries",
"value": "140.2",
"2006": "134.3",
"2007": "135.7",
"2005": "131.5",
"2008": "132.7",
"2009": "125.9",
"2011": "134.7",
"2010": "136.1",
"2012": "140.2"
},
{
"name": "Broadcasting and telecommunications",
"value": "757.4",
"2006": "627.3",
"2007": "648.7",
"2005": "610.1",
"2008": "666.9",
"2009": "657.7",
"2011": "717.5",
"2010": "687.4",
"2012": "757.4"
},
{
"name": "Data processing, internet publishing, and other information services",
"value": "177.1",
"2006": "110.8",
"2007": "119.8",
"2005": "98.4",
"2008": "132.7",
"2009": "132.5",
"2011": "156.3",
"2010": "141.2",
"2012": "177.1"
}
],
"2006": "1165",
"2007": "1208.6",
"2005": "1123.2",
"2008": "1240.4",
"2009": "1202.7",
"2011": "1305.8",
"id": "Information",
"2012": "1377.8"
},
{
"name": "Finance, insurance, real estate, rental, and leasing",
"value": "4831.8",
"2010": "4533.7",
"subvalues": [
{
"name": "Finance and insurance",
"value": "1999.4",
"2010": "1896",
"subvalues": [
{
"name": "Federal Reserve banks, credit intermediation, and related activities",
"value": "667.4",
"2006": "728.5",
"2007": "738",
"2005": "708.9",
"2008": "716.7",
"2009": "689.8",
"2011": "637.9",
"2010": "671.3",
"2012": "667.4"
},
{
"name": "Securities, commodity contracts, and investments",
"value": "436.6",
"2006": "448.5",
"2007": "503.4",
"2005": "383.2",
"2008": "432.7",
"2009": "403",
"2011": "413.3",
"2010": "418.4",
"2012": "436.6"
},
{
"name": "Insurance carriers and related activities",
"value": "776.9",
"2006": "657.5",
"2007": "703.6",
"2005": "625.9",
"2008": "710.4",
"2009": "662.4",
"2011": "742.1",
"2010": "699.4",
"2012": "776.9"
},
{
"name": "Funds, trusts, and other financial vehicles",
"value": "118.4",
"2006": "99.9",
"2007": "116.6",
"2005": "90",
"2008": "120.1",
"2009": "99.2",
"2011": "114.4",
"2010": "106.8",
"2012": "118.4"
}
],
"2006": "1934.4",
"2007": "2061.6",
"2005": "1807.9",
"2008": "1979.9",
"2009": "1854.3",
"2011": "1907.7",
"id": "Finance and insurance",
"2012": "1999.4"
},
{
"name": "Real estate and rental and leasing",
"value": "2832.4",
"2010": "2637.7",
"subvalues": [
{
"name": "Real estate",
"value": "2531.6",
"2006": "2344.3",
"2007": "2378.9",
"2005": "2249",
"2008": "2352.5",
"2009": "2322.1",
"2011": "2435.3",
"2010": "2371.1",
"2012": "2531.6"
},
{
"name": "Rental and leasing services and lessors of intangible assets",
"value": "300.8",
"2006": "259.5",
"2007": "267.9",
"2005": "248.1",
"2008": "287.8",
"2009": "249",
"2011": "281.8",
"2010": "266.6",
"2012": "300.8"
}
],
"2006": "2603.8",
"2007": "2646.8",
"2005": "2497.1",
"2008": "2640.2",
"2009": "2571",
"2011": "2717.1",
"id": "Real estate and rental and leasing",
"2012": "2832.4"
}
],
"2006": "4538.2",
"2007": "4708.4",
"2005": "4305.1",
"2008": "4620.1",
"2009": "4425.3",
"2011": "4624.8",
"id": "Finance, insurance, real estate, rental, and leasing",
"2012": "4831.8"
},
{
"name": "Professional and business services",
"value": "3027.8",
"2010": "2727.3",
"subvalues": [
{
"name": "Professional, scientific, and technical services",
"value": "1750.6",
"2010": "1609.2",
"subvalues": [
{
"name": "Legal services",
"value": "294.4",
"2006": "279.1",
"2007": "288.5",
"2005": "268.3",
"2008": "287.7",
"2009": "276.4",
"2011": "287.9",
"2010": "280.1",
"2012": "294.4"
},
{
"name": "Computer systems design and related services",
"value": "327",
"2006": "221.8",
"2007": "249.5",
"2005": "208.6",
"2008": "271.5",
"2009": "266.2",
"2011": "310",
"2010": "289.9",
"2012": "327"
},
{
"name": "Miscellaneous professional, scientific, and technical services",
"value": "1129.2",
"2006": "929",
"2007": "1005.1",
"2005": "867.4",
"2008": "1057.2",
"2009": "1006.1",
"2011": "1093.9",
"2010": "1039.1",
"2012": "1129.2"
}
],
"2006": "1429.9",
"2007": "1543.1",
"2005": "1344.4",
"2008": "1616.4",
"2009": "1548.7",
"2011": "1691.9",
"id": "Professional, scientific, and technical services",
"2012": "1750.6"
},
{
"name": "Management of companies and enterprises",
"value": "531.1",
"2006": "384.5",
"2007": "431.7",
"2005": "353.2",
"2008": "439.3",
"2009": "415.3",
"2011": "483.7",
"2010": "447.1",
"2012": "531.1"
},
{
"name": "Administrative and waste management services",
"value": "746.1",
"2010": "671",
"subvalues": [
{
"name": "Administrative and support services",
"value": "659.2",
"2006": "549.2",
"2007": "588.6",
"2005": "513.2",
"2008": "602.5",
"2009": "558.5",
"2011": "628.3",
"2010": "588.6",
"2012": "659.2"
},
{
"name": "Waste management and remediation services",
"value": "86.9",
"2006": "72.6",
"2007": "75.6",
"2005": "66.1",
"2008": "79.6",
"2009": "73.5",
"2011": "85.5",
"2010": "82.4",
"2012": "86.9"
}
],
"2006": "621.8",
"2007": "664.2",
"2005": "579.3",
"2008": "682",
"2009": "632",
"2011": "713.8",
"id": "Administrative and waste management services",
"2012": "746.1"
}
],
"2006": "2436.2",
"2007": "2639",
"2005": "2276.8",
"2008": "2737.8",
"2009": "2596",
"2011": "2889.3",
"id": "Professional and business services",
"2012": "3027.8"
},
{
"name": "Educational services, health care, and social assistance",
"value": "2249.3",
"2010": "2058.6",
"subvalues": [
{
"name": "Educational services",
"value": "311.7",
"2006": "209.3",
"2007": "227.1",
"2005": "193",
"2008": "244.4",
"2009": "259",
"2011": "291.7",
"2010": "279.4",
"2012": "311.7"
},
{
"name": "Health care and social assistance",
"value": "1937.6",
"2010": "1779.1",
"subvalues": [
{
"name": "Ambulatory health care services",
"value": "869.6",
"2006": "674.3",
"2007": "710.9",
"2005": "645.2",
"2008": "750.9",
"2009": "777.3",
"2011": "836.8",
"2010": "805.2",
"2012": "869.6"
},
{
"name": "Hospitals",
"value": "698.5",
"2006": "503.2",
"2007": "531.1",
"2005": "470.6",
"2008": "566.5",
"2009": "603",
"2011": "657.2",
"2010": "623.4",
"2012": "698.5"
},
{
"name": "Nursing and residential care facilities",
"value": "207.9",
"2006": "162",
"2007": "171.5",
"2005": "153.5",
"2008": "180.7",
"2009": "186.6",
"2011": "202.2",
"2010": "194.2",
"2012": "207.9"
},
{
"name": "Social assistance",
"value": "161.5",
"2006": "124.8",
"2007": "134.1",
"2005": "117.5",
"2008": "143.4",
"2009": "149.3",
"2011": "159.7",
"2010": "156.3",
"2012": "161.5"
}
],
"2006": "1464.3",
"2007": "1547.6",
"2005": "1386.8",
"2008": "1641.6",
"2009": "1716.2",
"2011": "1855.9",
"id": "Health care and social assistance",
"2012": "1937.6"
}
],
"2006": "1673.6",
"2007": "1774.7",
"2005": "1579.8",
"2008": "1886",
"2009": "1975.3",
"2011": "2147.6",
"id": "Educational services, health care, and social assistance",
"2012": "2249.3"
},
{
"name": "Arts, entertainment, recreation, accommodation, and food services",
"value": "1075.3",
"2010": "964",
"subvalues": [
{
"name": "Arts, entertainment, and recreation",
"value": "268.6",
"2010": "245.2",
"subvalues": [
{
"name": "Performing arts, spectator sports, museums, and related activities",
"value": "144",
"2006": "115.9",
"2007": "126.2",
"2005": "106",
"2008": "131.8",
"2009": "132.3",
"2011": "136.5",
"2010": "132.2",
"2012": "144"
},
{
"name": "Amusements, gambling, and recreation industries",
"value": "124.6",
"2006": "103.9",
"2007": "112.7",
"2005": "93.7",
"2008": "114.8",
"2009": "110.8",
"2011": "118.2",
"2010": "113",
"2012": "124.6"
}
],
"2006": "219.8",
"2007": "238.9",
"2005": "199.7",
"2008": "246.7",
"2009": "243.1",
"2011": "254.7",
"id": "Arts, entertainment, and recreation",
"2012": "268.6"
},
{
"name": "Accommodation and food services",
"value": "806.8",
"2010": "718.8",
"subvalues": [
{
"name": "Accommodation",
"value": "197.4",
"2006": "189.4",
"2007": "196.1",
"2005": "179.3",
"2008": "197.6",
"2009": "178.4",
"2011": "189.5",
"2010": "178.8",
"2012": "197.4"
},
{
"name": "Food services and drinking places",
"value": "609.3",
"2006": "493.1",
"2007": "513",
"2005": "467.1",
"2008": "525.3",
"2009": "521.6",
"2011": "569.3",
"2010": "539.9",
"2012": "609.3"
}
],
"2006": "682.6",
"2007": "709",
"2005": "646.4",
"2008": "723",
"2009": "700",
"2011": "758.7",
"id": "Accommodation and food services",
"2012": "806.8"
}
],
"2006": "902.4",
"2007": "948",
"2005": "846.1",
"2008": "969.6",
"2009": "943.1",
"2011": "1013.4",
"id": "Arts, entertainment, recreation, accommodation, and food services",
"2012": "1075.3"
},
{
"name": "Other services, except government",
"value": "579.6",
"2006": "522.3",
"2007": "533.8",
"2005": "496.2",
"2008": "551.6",
"2009": "526",
"2011": "553.9",
"2010": "539.6",
"2012": "579.6"
}
],
"id": ""
}