• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        #myChart {
          height: 100%;
          width: 100%;
          min-height: 150px;
        }
    
        .zc-ref {
          display: none;
        }
      </style>
    </head>
    
    <body>
      <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "globals": {
            "fontFamily": "Lucida Sans Unicode"
          },
          "type": "variwide",
          "title": {
            "text": "Labor costs in Europe, 2016",
            "adjustLayout": true
          },
          "source": {
            "text": "Source: Eurostat",
            "adjustLayout": true
          },
          "plotarea": {
            "margin": "dynamic"
          },
          "options": {
            "data": [
              ["Norway", 50.2, 335504],
              ["Denmark", 42, 277339],
              ["Belgium", 39.2, 421611],
              ["Sweden", 38, 462057],
              ["France", 35.6, 2228857],
              ["Netherlands", 34.3, 702641],
              ["Finland", 33.2, 215615],
              ["Germany", 33.0, 3144050],
              ["Austria", 32.7, 349344],
              ["Ireland", 30.4, 275567],
              ["Italy", 27.8, 1672438],
              ["United Kingdom", 26.7, 2366911],
              ["Spain", 21.3, 1113851],
              ["Greece", 14.2, 175887],
              ["Portugal", 13.7, 184933],
              ["Czech Republic", 10.2, 176564],
              ["Poland", 8.6, 424269],
              ["Romania", 5.5, 169578]
            ]
          },
          "scaleX": {
            "label": {
              "text": "Column widths are proportional to GDP",
              "bold": false
            },
            "item": {
              "color": "#000",
              "fontSize": 10,
              "angle": 330
            }
          },
          "-scaleY": {
            "guide": {
              "lineStyle": "solid"
            }
          },
          "plot": {
            "valueBox": {
              "text": "\u20AC%data-value",
              "color": "#000",
              "overlap": false
            },
            "tooltipText": "<span style='font-size:17px;color:%color'><b>%plot-text</b></span><br><br>Labor costs: <b>\u20AC%data-value/h</b><br>GDP: <b>\u20AC%data-size million</b>"
          },
          "tooltip": {
            "padding": 10,
            "fontSize": 12,
            "backgroundColor": "#fff",
            "alpha": 0.9,
            "color": "#000",
            "align": "left",
            "borderRadius": 7,
            "borderWidth": 2,
            "offsetY": 5,
            "shadow": true,
            "shadowDistance": 2,
            "borderColor": "%color-1",
            "placement": "node:top",
            "callout": true,
            "text": "<span style='font-size:17px;color:%color;font-weight:bold;'>\u220e %plot-text</span><br><br>Labor costs: <b>\u20AC%data-value/h</b><br>GDP: <b>\u20AC%data-size million</b>"
          }
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: '400',
          width: '100%'
        });
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    
    <body>
      <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    #myChart {
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    
    .zc-ref {
      display: none;
    }
    var myConfig = {
      "globals": {
        "fontFamily": "Lucida Sans Unicode"
      },
      "type": "variwide",
      "title": {
        "text": "Labor costs in Europe, 2016",
        "adjustLayout": true
      },
      "source": {
        "text": "Source: Eurostat",
        "adjustLayout": true
      },
      "plotarea": {
        "margin": "dynamic"
      },
      "options": {
        "data": [
          ["Norway", 50.2, 335504],
          ["Denmark", 42, 277339],
          ["Belgium", 39.2, 421611],
          ["Sweden", 38, 462057],
          ["France", 35.6, 2228857],
          ["Netherlands", 34.3, 702641],
          ["Finland", 33.2, 215615],
          ["Germany", 33.0, 3144050],
          ["Austria", 32.7, 349344],
          ["Ireland", 30.4, 275567],
          ["Italy", 27.8, 1672438],
          ["United Kingdom", 26.7, 2366911],
          ["Spain", 21.3, 1113851],
          ["Greece", 14.2, 175887],
          ["Portugal", 13.7, 184933],
          ["Czech Republic", 10.2, 176564],
          ["Poland", 8.6, 424269],
          ["Romania", 5.5, 169578]
        ]
      },
      "scaleX": {
        "label": {
          "text": "Column widths are proportional to GDP",
          "bold": false
        },
        "item": {
          "color": "#000",
          "fontSize": 10,
          "angle": 330
        }
      },
      "-scaleY": {
        "guide": {
          "lineStyle": "solid"
        }
      },
      "plot": {
        "valueBox": {
          "text": "\u20AC%data-value",
          "color": "#000",
          "overlap": false
        },
        "tooltipText": "<span style='font-size:17px;color:%color'><b>%plot-text</b></span><br><br>Labor costs: <b>\u20AC%data-value/h</b><br>GDP: <b>\u20AC%data-size million</b>"
      },
      "tooltip": {
        "padding": 10,
        "fontSize": 12,
        "backgroundColor": "#fff",
        "alpha": 0.9,
        "color": "#000",
        "align": "left",
        "borderRadius": 7,
        "borderWidth": 2,
        "offsetY": 5,
        "shadow": true,
        "shadowDistance": 2,
        "borderColor": "%color-1",
        "placement": "node:top",
        "callout": true,
        "text": "<span style='font-size:17px;color:%color;font-weight:bold;'>\u220e %plot-text</span><br><br>Labor costs: <b>\u20AC%data-value/h</b><br>GDP: <b>\u20AC%data-size million</b>"
      }
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: '400',
      width: '100%'
    });