• 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 = {
                "success": true,
                "object": null,
                "gui": {
                    "context-menu": {
                        "empty": false
                    }
                },
                "graphset": [{
                    "type": "area",
                    "stacked": true,
                    "title": {
                        "text": null,
                        "font-size": "12",
                        "wrap-text": true,
                        "font-color": "#000"
                    },
                    "legend": {
                        "layout": "float",
                        "position": "50% 95%",
                        "overflow": "page",
                        "item": {
                            "max-chars": 30
                        },
                        "visible": true,
                        "minimize": false,
                        "max-items": "8"
                    },
                    "series": [{
                            "type": "area",
                            "values": [
                                1718.2910074167,
                                1711.0606132724001,
                                1697.5823977374,
                                1670.6134691196899,
                                1623.3585641005
                            ],
                            "scales": "scale-x,scale-y",
                            "text": "2nd Platform",
                            "decimals": 3,
                            "palette": null,
                            "thousands-separator": ","
                        },
                        {
                            "type": "area",
                            "values": [
                                1770.6227313805703,
                                1851.7184446860406,
                                1930.96898290869,
                                2001.6186083385808,
                                2077.52625985367
                            ],
                            "scales": "scale-x,scale-y",
                            "text": "3rd Platform",
                            "decimals": 3,
                            "palette": null,
                            "thousands-separator": ","
                        },
                        {
                            "type": "area",
                            "values": [
                                930.863025379792,
                                1089.3670136330734,
                                1275.3450131103734,
                                1504.314008323564,
                                1799.8229120005378
                            ],
                            "scales": "scale-x,scale-y",
                            "text": "Innovation Accelerator",
                            "decimals": 3,
                            "palette": null,
                            "thousands-separator": ","
                        }
                    ],
                    "plot": {
                        "tooltip-text": "%t: %k, %v (Value (Constant Annual), US Dollar)",
                        "valueBox": [{
                                type: 'last',
                                placement: 'bottom',
                                text: '%%pper',
                                fontSize: 20,
                                fontColor: '#fff',
                                textAlign: 'left',
                                offsetX: -50,
                                offsetY: 50
                            },
                            {
                                type: 'min,max',
                                placement: 'top',
                                text: '%v',
                                textAlign: 'left',
                            }
                        ]
                    },
                    "scale-x": {
                        "visible": true,
                        "values": [
                            "2016",
                            "2017",
                            "2018",
                            "2019",
                            "2020"
                        ],
                        "label": {
                            "text": null
                        },
                        "item": {
    
                        }
                    },
                    "scale-y": {
                        "visible": true,
                        "format": "%v",
                        "label": {
                            "text": "Value (Constant Annual), US Dollar (B)"
                        },
                        "item": {
    
                        }
                    }
                }],
                "layout": "1x1",
                "error-messages": [
    
                ],
                "info-messages": [
    
                ],
                "success-messages": [
    
                ],
                "data-map": {
    
                },
                "failed-data": null,
                "color-range": null,
                "growth-rate": null,
                "dim-name": "Platform"
            };
    
            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 = {  
       "success":true,
       "object":null,
       "gui":{  
          "context-menu":{  
             "empty":false
          }
       },
       "graphset":[  
          {  
             "type":"area",
             "stacked":true,
             "title":{  
                "text":null,
                "font-size":"12",
                "wrap-text":true,
                "font-color":"#000"
             },
             "legend":{  
                "layout":"float",
                "position":"50% 95%",
                "overflow":"page",
                "item":{  
                   "max-chars":30
                },
                "visible":true,
                "minimize":false,
                "max-items":"8"
             },
             "series":[  
                {  
                   "type":"area",
                   "values":[  
                      1718.2910074167,
                      1711.0606132724001,
                      1697.5823977374,
                      1670.6134691196899,
                      1623.3585641005
                   ],
                   "scales":"scale-x,scale-y",
                   "text":"2nd Platform",
                   "decimals":3,
                   "palette":null,
                   "thousands-separator":","
                },
                {  
                   "type":"area",
                   "values":[  
                      1770.6227313805703,
                      1851.7184446860406,
                      1930.96898290869,
                      2001.6186083385808,
                      2077.52625985367
                   ],
                   "scales":"scale-x,scale-y",
                   "text":"3rd Platform",
                   "decimals":3,
                   "palette":null,
                   "thousands-separator":","
                },
                {  
                   "type":"area",
                   "values":[  
                      930.863025379792,
                      1089.3670136330734,
                      1275.3450131103734,
                      1504.314008323564,
                      1799.8229120005378
                   ],
                   "scales":"scale-x,scale-y",
                   "text":"Innovation Accelerator",
                   "decimals":3,
                   "palette":null,
                   "thousands-separator":","
                }
             ],
             "plot":{  
                "tooltip-text":"%t: %k, %v (Value (Constant Annual), US Dollar)",
                "valueBox": [
                  {
                    type: 'last',
                    placement:'bottom',
                    text: '%%pper',
                    fontSize: 20,
                    fontColor:'#fff',
                    textAlign:'left',
                    offsetX: -50,
                    offsetY: 50
                  },
                  {
                    type: 'min,max',
                    placement:'top',
                    text: '%v',
                    textAlign:'left',
                  }   
                ]
             },
             "scale-x":{  
                "visible":true,
                "values":[  
                   "2016",
                   "2017",
                   "2018",
                   "2019",
                   "2020"
                ],
                "label":{  
                   "text":null
                },
                "item":{  
    
                }
             },
             "scale-y":{  
                "visible":true,
                "format":"%v",
                "label":{  
                   "text":"Value (Constant Annual), US Dollar (B)"
                },
                "item":{  
    
                }
             }
          }
       ],
       "layout":"1x1",
       "error-messages":[  
    
       ],
       "info-messages":[  
    
       ],
       "success-messages":[  
    
       ],
       "data-map":{  
    
       },
       "failed-data":null,
       "color-range":null,
       "growth-rate":null,
       "dim-name":"Platform"
    };
    
    zingchart.render({ 
    	id: 'myChart', 
    	data: myConfig, 
    	height: '100%', 
    	width: '100%' 
    });