• 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,
        #myChart {
          height: 100%;
          width: 100%;
        }
      </style>
    </head>
    
    <body>
      <div id='myChart'></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "type": "hmixed",
          "plot": {
            "tooltip": {
              "text": "%t"
            }
          },
          "series": [{
            "type": "hbullet",
            "values": [34, 70, 40, 75, 33, 50, 65],
            "goals": [30, 75, 49, 69, 35, 59, 60],
            "text": "Bullet Chart"
          }, {
            "type": "hscatter",
            "values": [
              [0.3, 5],
              [0.4, 11],
              [0.5, 9],
              [0.8, 7],
              [1, 12],
              [1.1, 3],
              [1.2, 6],
              [1.5, 19]
            ],
            "text": "Scatter Chart"
          }, {
            "type": "hbubble",
            "values": [
              [3.4, 10, 5],
              [3.8, 9, 2],
              [4.2, 19, 6],
              [4.5, 8, 1],
              [4.8, 11, 3],
              [5.1, 15, 7],
              [5.6, 7, 2],
              [5.8, 11, 3]
            ],
            "text": "Bubble Chart"
          }]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: "100%",
          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'></div>
    	</body>
    </html>
    html,body,#myChart{
     height: 100%;
     width: 100%;
    }
    var myConfig = {
    	"type": "hmixed",
    	"plot": {
    		"tooltip": {
    			"text": "%t"
    		}
    	},
    	"series": [{
    		"type": "hbullet",
    		"values": [34, 70, 40, 75, 33, 50, 65],
    		"goals": [30, 75, 49, 69, 35, 59, 60],
    		"text": "Bullet Chart"
    	}, {
    		"type": "hscatter",
    		"values": [
    			[0.3, 5],
    			[0.4, 11],
    			[0.5, 9],
    			[0.8, 7],
    			[1, 12],
    			[1.1, 3],
    			[1.2, 6],
    			[1.5, 19]
    		],
    		"text": "Scatter Chart"
    	}, {
    		"type": "hbubble",
    		"values": [
    			[3.4, 10, 5],
    			[3.8, 9, 2],
    			[4.2, 19, 6],
    			[4.5, 8, 1],
    			[4.8, 11, 3],
    			[5.1, 15, 7],
    			[5.6, 7, 2],
    			[5.8, 11, 3]
    		],
    		"text": "Bubble Chart"
    	}]
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig, 
    	height: "100%", 
    	width: "100%"
    });