• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>ZingSoft Demo</title>
        <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    
        <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 = {
                type: 'bar',
                globals: {
                    fontFamily: 'FontAwesome'
                },
                title: {
                    text: 'Number Of Injuries \uf0fa Vs Successful Trips \uf14a'
                },
                scaleX: {
                    labels: ['\uf21c', '\uf207', '\uf0fb', '\uf239', '\uf0d1', '\uf29b', '\uf1ba']
                },
                legend: {},
                series: [{
                        values: [35, 3, 5, 12, 13, 15, 10],
                        text: '\uf0fa',
                    },
                    {
                        values: [5, 15, 46, 50, 15, 1, 20],
                        text: '\uf14a'
                    }
                ]
            };
    
            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>
    	<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    	
    		<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 = {
     	type: 'bar', 
     	globals: {
     	  fontFamily: 'FontAwesome'
     	},
      title: {
       text: 'Number Of Injuries \uf0fa Vs Successful Trips \uf14a'
      },
     	scaleX: {
     	  labels:['\uf21c','\uf207','\uf0fb','\uf239','\uf0d1','\uf29b','\uf1ba']
     	},
     	legend:{},
    	series: [
    		{
    			values: [35,3,5,12,13,15,10],
    			 text: '\uf0fa', 
    		},
    		{
    			values: [5,15,46,50,15,1,20],
    			text: '\uf14a' 
    		}
    	]
    };
    
    zingchart.render({ 
    	id: 'myChart', 
    	data: myConfig, 
    	height: '100%', 
    	width: '100%' 
    });