• 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 {
                height: 100%;
                width: 100%;
                min-height: 150px;
            }
    
            .zc-ref {
                display: none;
            }
    
            zing-grid[loading] {
                height: 800px;
            }
        </style>
    </head>
    
    <body>
        <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
        <script>
            ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
            var myConfig = {
                graphset: [{
                    type: 'ring',
                    plot: {
                        valueBox: [{
                                text: "%v %t",
                                placement: 'out'
                            },
                            {
                                text: "%npv%",
                                placement: 'in',
                                anchor: 'c',
                                fontColor: 'black'
                            }
                        ],
                        tooltip: {
                            visible: 'false',
                            text: "This Slice: <br>%v",
                            placement: 'vertical',
                            fontColor: 'black',
                            sticky: true,
                            timeout: 3000,
                            fontSize: 18,
                            anchor: 'b'
                        }
                    },
                    labels: [{
                        x: '50%',
                        y: '50%',
                        anchor: 't', //tl,tr,bl,br,c,t,r,b,l
                        text: "My Chart",
                        borderColor: 'blue',
                        borderWidth: 2,
                        padding: 5,
                        borderRadius: 2
                    }],
                    series: [{
                            values: [30],
                            text: "Whoa"
                        },
                        {
                            values: [40],
                            text: "Value"
                        },
                        {
                            values: [50],
                            text: "Box"
                        }
                    ]
                }]
            };
    
            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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    	</body>
    </html>
    html, body {
    	height:100%;
    	width:100%;
    	margin:0;
    	padding:0;
    }
    #myChart {
    	height:100%;
    	width:100%;
    	min-height:150px;
    }
    .zc-ref {
    	display:none;
    }
    var myConfig = {
      graphset:[
        {
         	type: 'ring',
          plot:{
           valueBox:[
             {
               text: "%v %t",
               placement: 'out'
             },
              {
               text: "%npv%",
               placement: 'in',
               anchor: 'c',
               fontColor: 'black'
             }
           ],
         	  tooltip:{
         	    visible: 'false',
         	    text: "This Slice: <br>%v",
         	    placement: 'vertical',
         	    fontColor: 'black',
         	    sticky: true,
         	    timeout: 3000,
         	    fontSize: 18,
         	    anchor: 'b'
         	  }
         	},
         	labels:[
         	  {
         	    x: '50%',
         	    y: '50%',
         	    anchor: 't', //tl,tr,bl,br,c,t,r,b,l
         	    text: "My Chart",
         	    borderColor:'blue',
         	    borderWidth: 2,
         	    padding: 5,
         	    borderRadius: 2
         	  }
         	],
        	series: [
        		{
        			values: [30],
        			text:"Whoa"
        		},
        			{
        			values: [40],
        			text: "Value"
        		},
        			{
        			values: [50],
        			text: "Box"
        		}
        	]
        }
      ]
      };
    
    zingchart.render({ 
    	id: 'myChart', 
    	data: myConfig, 
    	height: '100%', 
    	width: '100%' 
    });