• 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%;
            }
    
            zing-grid[loading] {
                height: 450px;
            }
        </style>
    </head>
    
    <body>
        <div id='myChart'></div>
        <script>
            ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
            var myConfig9 = {
                "type": "gauge",
                "scale": {
                    "size-factor": 0.7
                },
                "scale-2": {
                    "size-factor": 1
                },
                "scale-r": { //Default Scale
                    "aperture": 200,
                    "values": "0:100:20",
                    "center": {
                        "size": 5,
                        "background-color": "#66CCFF #FFCCFF",
                        "border-color": "none"
                    }
                },
                "scale-r-2": { //Additional Scale
                    "aperture": 250,
                    "values": "-100:100:20",
                    "center": {
                        "size": 5,
                        "background-color": "#66CCFF #FFCCFF",
                        "border-color": "none"
                    },
                    "guide": {
                        "alpha": 0 //Make sure your larger scale's background is set to transparent.
                    }
                },
                "series": [{
                        "values": [87],
                        "csize": "5%",
                        "size": "90%"
                    },
                    {
                        "values": [65],
                        "scales": "scale-2,scale-r-2", //Specify which scale your data should plot to.
                        "csize": "5%",
                        "size": "90%"
                    }
                ]
            };
    
            zingchart.render({
                id: 'myChart',
                data: myConfig9,
                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 myConfig9 = {
      "type":"gauge",
      "scale":{
        "size-factor":0.7
      },
      "scale-2":{
        "size-factor":1
      },
      "scale-r":{ //Default Scale
        "aperture":200,
        "values":"0:100:20",
        "center":{
          "size":5,
     	    "background-color":"#66CCFF #FFCCFF",
     	    "border-color":"none"
        }
      },
      "scale-r-2":{ //Additional Scale
        "aperture":250,
        "values":"-100:100:20",
        "center":{
          "size":5,
     	    "background-color":"#66CCFF #FFCCFF",
     	    "border-color":"none"
        },
        "guide":{
          "alpha":0 //Make sure your larger scale's background is set to transparent.
        }
      },
      "series":[
        {
          "values":[87],
          "csize":"5%",
          "size":"90%"
        },
        {
          "values":[65],
          "scales":"scale-2,scale-r-2", //Specify which scale your data should plot to.
          "csize":"5%",
          "size":"90%"
        }
      ]
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig9, 
    	height : "100%", 
    	width: "100%"
    });