• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        #myChart {
          min-height: 150px;
        }
    
        .zc-ref {
          display: none;
        }
      </style>
    </head>
    
    <body>
      <div id='myChart'><a class="zc-ref" href="https://www.zingchart.com/">Charts by ZingChart</a></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        zingchart.THEME = "classic";
        var myConfig = {
          "type": "boxplot",
          "background-color": "#DCE6F1",
          "title": {
            "background-color": "none",
            "text": "Base Salary Comparison",
            "color": "black",
            "font-weight": "none",
            "font-size": 24,
            "offset-y": "36%"
          },
          "plotarea": {
            "margin-top": "20%",
            "margin-left": "25%",
            "margin-right": "12%"
          },
          "plot": {
            "bar-width": 70,
            "hover-state": {
              "visible": false
            }
          },
          "tooltip": {
            "shadow": false,
            "border-radius": 3,
            "rules": [{
                "rule": "%i == 0",
                "background-color": "#9A8AAD"
              },
              {
                "rule": "%i == 1",
                "background-color": "#AABD82"
              }
            ]
          },
          "scale-x": {
            "offset-start": 40,
            "offset-end": 40,
            "line-color": "none",
            "labels": ["Marketing", "Research"],
            "tick": {
              "visible": false
            },
            "item": {
              "font-size": 14
            },
            "guide": {
              "visible": false
            }
          },
          "scale-y": {
            "offset-start": 20,
            "offset-end": 20,
            "values": "50:250:25",
            "format": "$%v K",
            "line-color": "#7F7F7F",
            "tick": {
              "line-color": "#7F7F7F"
            },
            "guide": {
              "visible": false
            }
          },
          "options": {
            "box": {
              "border-color": "#204A7B",
              "border-width": 2,
              "rules": [{
                  "rule": "%i == 0",
                  "background-color": "#9A8AAD"
                },
                {
                  "rule": "%i == 1",
                  "background-color": "#AABD82"
                }
              ]
            },
            "line-median-level": {
              "line-color": "#FC0B1A",
              "line-width": 2
            },
            "line-min-level": {
              "line-color": "#204A7B",
              "line-width": 2
            },
            "line-min-connector": {
              "line-color": "#204A7B",
              "line-width": 2
            },
            "line-max-level": {
              "line-color": "#204A7B",
              "line-width": 2
            },
            "line-max-connector": {
              "line-color": "#204A7B",
              "line-width": 2
            }
          },
          "series": [{
            "data-box": [
              [75, 100, 150, 225, 250],
              [50, 75, 100, 125, 175]
            ]
          }]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          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/">Charts by ZingChart</a></div>
    	</body>
    </html>
    html, body { height:100%; width:100%; margin:0; padding:0; }
    
    #myChart {min-height:150px;}
    .zc-ref {
      display: none;
    }
    zingchart.THEME="classic";
    var myConfig = {
        "type":"boxplot",
        "background-color":"#DCE6F1",
        "title":{
            "background-color":"none",
            "text":"Base Salary Comparison",
            "color":"black",
            "font-weight":"none",
            "font-size":24,
            "offset-y":"36%"
            },
            "plotarea":{
                "margin-top":"20%",
                "margin-left":"25%",
                "margin-right":"12%"
                },
        "plot":{
            "bar-width":70,
            "hover-state":{
                "visible": false
                }
            },
        "tooltip":{
            "shadow": false,
            "border-radius":3,
            "rules":[
                {
                    "rule":"%i == 0",
                    "background-color":"#9A8AAD"
                },
                {
                    "rule":"%i == 1",
                    "background-color":"#AABD82"
                }
                ]
            },
        "scale-x":{
            "offset-start":40,
            "offset-end":40,
            "line-color":"none",
            "labels":["Marketing", "Research"],
            "tick":{
                "visible":false
                },
            "item":{
                "font-size":14
                },
                "guide":{
                    "visible":false
                    }
            },
            "scale-y":{
                "offset-start":20,
                "offset-end":20,
                "values":"50:250:25",
                "format":"$%v K",
                "line-color":"#7F7F7F",
                "tick":{
                    "line-color":"#7F7F7F"
                    },
                    "guide":{
                        "visible":false
                        }
                },
                "options":{
                    "box":{
                        "border-color":"#204A7B",
                        "border-width":2,
                        "rules":[
                          {
                              "rule":"%i == 0",
                              "background-color":"#9A8AAD"
                          },
                          {
                              "rule":"%i == 1",
                              "background-color":"#AABD82"
                          }
                          ]
                        },
                            "line-median-level":{
                            "line-color":"#FC0B1A",
                            "line-width":2
                            },
                            "line-min-level":{
                                "line-color":"#204A7B",
                                "line-width":2
                                },
                            "line-min-connector":{
                                "line-color":"#204A7B",
                                "line-width":2},
                            "line-max-level":{
                                "line-color":"#204A7B",
                                "line-width":2},
                            "line-max-connector":{
                                "line-color":"#204A7B",
                                "line-width":2}
                    },
        "series":[
            {
                "data-box":[[75, 100, 150, 225, 250],[50, 75, 100, 125, 175]]    
            }
            ]
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig, 
    	width: '100%' 
    });