Bar and area chart - Bar and area chart

Bar and area chart showing US Economy by industry

keyboard_arrow_leftGo back
Open in JSFiddle
JavaScript
chart= new FacetChart({
    "series": [
        {
            "name": "GDP by industry, max 2016",
            "data": {
                "field": "2012",
                "aggregation": "max"
            },
            "style": {
                "fillColor": "#eab404",
                "lineColor": "#eab404"
            },
            "type": "line"
        },
        {
            "name": "GDP by industry, min 2006",
            "data": {
                "field": "2006",
                "aggregation": "min"
            },
            "style": {
                "fillColor": "#2fc32f",
                "lineColor": "#2fc32f"
            },
            "type": "columns"
        }
    ],
    "container": "demo",
    "data": [
        {
            "url": "\/data\/us-economy.json"
        }
    ],
    "toolbar": {
        "fullscreen": true,
        "enabled": true
    },
    "interaction": {
        "resizing": {
            "enabled": false
        }
    }
})
HTML
      <script src="https://cdn.zoomcharts-cloud.com/1/latest/zoomcharts.js"></script>
      <div id="demo"></div>
                  
Data