• 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 myConfig3b = {
                "type": "gauge",
                "scale-r": {
                    "aperture": 200,
                    "values": "0:100:25",
                    "labels": ["Base's<br>Radius", "Tip's<br>Radius", "Base's<br>Angle", "Tip's<br>Angle", " "],
                    "item": {
                        "offset-r": 0
                    }
                },
                "scale": {
                    "size-factor": 0.9
                },
                "tooltip": {
                    "text": "%t",
                    "font-color": "black",
                    "background-color": "white"
                },
                "series": [{
                        "values": [3],
                        "indicator": [10, 0, 0, 0, 0.3],
                        "text": "R-Base (pos value --> rounded base)"
                    },
                    {
                        "values": [17],
                        "indicator": [-10, 0, 0, 0, 0.3],
                        "text": "R-Base (neg value --> flat base)"
                    },
                    {
                        "values": [30],
                        "indicator": [0, 10, 0, 0, 0.3],
                        "text": "R-Tip (pos value --> rounded tip)"
                    },
                    {
                        "values": [45],
                        "indicator": [0, -10, 0, 0, 0.3],
                        "text": "R-Tip (neg value --> pointed tip)"
                    },
                    {
                        "values": [55],
                        "indicator": [10, 5, 100, 0, 0.3],
                        "text": "A-Base (angle value on a rounded (pos) base)"
                    },
                    {
                        "values": [70],
                        "indicator": [-10, -5, 100, 0, 0.3],
                        "text": "A-Base (angle value on a flat (neg) base)<br>--> has NO effect!"
                    },
                    {
                        "values": [83],
                        "indicator": [5, 10, 0, 100, 0.3],
                        "text": "A-Tip (angle value on a rounded tip)"
                    },
                    {
                        "values": [97],
                        "indicator": [-5, -10, 0, 100, 0.3],
                        "text": "A-Tip (angle value on a pointed tip)"
                    }
                ]
            };
    
            zingchart.render({
                id: 'myChart',
                data: myConfig3b,
                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 myConfig3b = {
      "type":"gauge",
      "scale-r":{
        "aperture":200,
        "values":"0:100:25",
        "labels":["Base's<br>Radius","Tip's<br>Radius","Base's<br>Angle","Tip's<br>Angle"," "],
        "item":{
          "offset-r":0
        }
      },
      "scale":{
        "size-factor":0.9
      },
      "tooltip":{
        "text":"%t",
        "font-color":"black",
        "background-color":"white"
      },
      "series":[
        {
          "values":[3],
          "indicator":[10,0,0,0,0.3],
          "text":"R-Base (pos value --> rounded base)"
        },
        {
          "values":[17],
          "indicator":[-10,0,0,0,0.3],
          "text":"R-Base (neg value --> flat base)"
        },
        {
          "values":[30],
          "indicator":[0,10,0,0,0.3],
          "text":"R-Tip (pos value --> rounded tip)"
        },
        {
          "values":[45],
          "indicator":[0,-10,0,0,0.3],
          "text":"R-Tip (neg value --> pointed tip)"
        },
        {
          "values":[55],
          "indicator":[10,5,100,0,0.3],
          "text":"A-Base (angle value on a rounded (pos) base)"
        },
        {
          "values":[70],
          "indicator":[-10,-5,100,0,0.3],
          "text":"A-Base (angle value on a flat (neg) base)<br>--> has NO effect!"
        },
        {
          "values":[83],
          "indicator":[5,10,0,100,0.3],
          "text":"A-Tip (angle value on a rounded tip)"
        },
        {
          "values":[97],
          "indicator":[-5,-10,0,100,0.3],
          "text":"A-Tip (angle value on a pointed tip)"
        }
      ]
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig3b, 
    	height : "100%", 
    	width: "100%" 
    });