• 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>
            zing-grid[loading] {
                height: 800px;
            }
        </style>
    </head>
    
    <body>
        <div id='myChart'></div>
        <script>
            ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
            var myConfig1 = {
                "type": "gauge",
                backgroundColor: "lightblue",
                title: {
                    text: 'Gauge OffsetR'
                },
                plotarea: {
                    margin: "50 20 100 0" //way to move around the graph
                },
                scale: {
                    sizeFactor: .9 //a way to scale your graph down/upfor gauges value 
                },
                scaleR: {
                    tick: {
                        placement: "outter"
                    },
                    item: {
                        offsetR: 0 //offsetR to 0 will place the numbers closer
                        //default is -45.
                        //offsetR works just like padding, choose one
                    }
                },
                "series": [{
                    "values": [87]
                }]
            };
    
    
            zingchart.render({
                id: 'myChart',
                data: myConfig1,
                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'></div>
    	</body>
    </html>
    
          
    var myConfig1 = {
      "type":"gauge",
      backgroundColor:"lightblue",
      title:{
        text:'Gauge OffsetR'
      },
      plotarea:{
        margin: "50 20 100 0" //way to move around the graph
      },
      scale:{
        sizeFactor: .9 //a way to scale your graph down/upfor gauges value 
      },
      scaleR:{
        tick:{
          placement: "outter"
        },
        item:{
          offsetR: 0 //offsetR to 0 will place the numbers closer
          //default is -45.
          //offsetR works just like padding, choose one
        }
      },
      "series":[
        {"values":[87]}
      ]
    };
    
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig1, 
    	height: 400, 
    	width: '100%' 
    });