• 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: nullpx;
            }
        </style>
    </head>
    
    <body>
        <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
        <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
        <script>
            ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
            var myConfig = {
                "globals": {
                    "font-family": "Open Sans"
                },
                "type": "area",
                "title": {
                    "text": "Sales Per Company ($B)"
                },
                "tooltip": {
                    "font-size": 11,
                    "border-width": 0,
                    "padding": "6 10",
                    "background-color": "#444 #111",
                    "fill-angle": 270,
                    "color": "#fff",
                    "border-radius": 6,
                    "alpha": 0.85
                },
                "plotarea": {
                    "margin-bottom": "70"
                },
                "stacked": true,
                "scaleX": {},
                "scaleY": {},
                "legend": {
                    "border-width": 0,
                    "toggle-action": "remove",
                    "margin": "auto auto 10 auto",
                    "layout": "float",
                    "marker": {
                        "visible": false
                    },
                    "item": {
                        "width": 80,
                        "offset-x": -10,
                        "border-width": 0,
                        "border-radius": 9,
                        "background-image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAN5JREFUeNqckEEOAUEQRXuwsiAZJLMhcQPBGYQNR7AxDuAALjD3siNhNbYkNjYSsZGh/WI6amp6ROYnb/NTv7r6O1rrglLqqXIod9CEpeqgaPFdUPoVHoIQ+MLvgx1YJlz82VADV/1RBGax3wUH/dXCZHi4ArZs6AYCsGceLR/bwkQLrLVdFzDi8zJMeCAUwTsYyFlb2w1QFh617KUmxbYeOGacTSX6WWe74MSGz2AOVmKJbwtX2au8nCbYsPA0q7BO3PZE+O34gsTZzntDupzIUiT5D6rJGLbw33oJMABus6yuV/7GiAAAAABJRU5ErkJggg==",
                        "background-position": "90% 50%",
                        "background-repeat": false,
                        "padding": "6 24 6 6"
                    },
                    "item-off": {
                        "background-color": "#bbb"
                    }
                },
                "plot": {},
                "series": [{
                        "values": [69, 68, 54, 48, 70, 74],
                        "text": "Apple",
                        "legend-item": {
                            "background-color": "#29A2CC"
                        }
                    },
                    {
                        "values": [51, 53, 47, 60, 48, 52],
                        "text": "Microsoft",
                        "legend-item": {
                            "background-color": "#D31E1E"
                        }
                    },
                    {
                        "values": [42, 43, 30, 40, 31, 48],
                        "text": "Oracle",
                        "legend-item": {
                            "background-color": "#7CA82B"
                        }
                    },
                    {
                        "values": [25, 15, 26, 21, 24, 26],
                        "text": "Dell",
                        "legend-item": {
                            "background-color": "#EF8535"
                        }
                    }
                ]
            };
    
            zingchart.render({
                id: 'myChart',
                data: myConfig,
                height: '500',
                width: '500'
            });
        </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>
    	  <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    		<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 = {
        "globals":{
            "font-family":"Open Sans"
        },
        "type":"area",
    	"title":{
    		"text":"Sales Per Company ($B)"
    	},
        "tooltip":{
            "font-size":11,
            "border-width":0,
            "padding":"6 10",
            "background-color":"#444 #111",
            "fill-angle":270,
            "color":"#fff",
            "border-radius":6,
            "alpha":0.85
        },
    	"plotarea":{
            "margin-bottom":"70"
    	},
        "stacked":true,
    	"scaleX":{
    	},
    	"scaleY":{
    	},
        "legend":{
            "border-width":0,
            "toggle-action":"remove",
            "margin":"auto auto 10 auto",
            "layout":"float",
            "marker":{
                "visible":false
            },
            "item":{
                "width":80,
                "offset-x":-10,
                "border-width":0,
                "border-radius":9,
                "background-image":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAN5JREFUeNqckEEOAUEQRXuwsiAZJLMhcQPBGYQNR7AxDuAALjD3siNhNbYkNjYSsZGh/WI6amp6ROYnb/NTv7r6O1rrglLqqXIod9CEpeqgaPFdUPoVHoIQ+MLvgx1YJlz82VADV/1RBGax3wUH/dXCZHi4ArZs6AYCsGceLR/bwkQLrLVdFzDi8zJMeCAUwTsYyFlb2w1QFh617KUmxbYeOGacTSX6WWe74MSGz2AOVmKJbwtX2au8nCbYsPA0q7BO3PZE+O34gsTZzntDupzIUiT5D6rJGLbw33oJMABus6yuV/7GiAAAAABJRU5ErkJggg==",
                "background-position":"90% 50%",
                "background-repeat":false,
                "padding":"6 24 6 6"
            },
            "item-off":{
                "background-color":"#bbb"
            }
        },
    	"plot":{
    	},
    	"series":[
    		{
    			"values":[69,68,54,48,70,74],
    			"text":"Apple",
                "legend-item":{
                    "background-color":"#29A2CC"    
                }
    		},
    		{
    			"values":[51,53,47,60,48,52],
    			"text":"Microsoft",
                "legend-item":{
                    "background-color":"#D31E1E"    
                }
    		},
    		{
    			"values":[42,43,30,40,31,48],
    			"text":"Oracle",
                "legend-item":{
                    "background-color":"#7CA82B"    
                }
    		},
    		{
    			"values":[25,15,26,21,24,26],
    			"text":"Dell",
                "legend-item":{
                    "background-color":"#EF8535"    
                }
    		}
    	]
    };
    
    zingchart.render({ 
    	id: 'myChart', 
    	data: myConfig, 
    	height: '500', 
    	width: '500' 
    });