• 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>
            zing-grid[loading] {
                height: 400px;
            }
        </style>
    </head>
    
    <body>
        <div id='myChart'></div>
        <script>
            ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
            var myConfig = {
                "type": "line",
                "plot": {
                    "errors": [
                        [5.5, 6.3],
                        [8, 9],
                        [5.1, 6],
                        [6.3, 7.4],
                        [4, 5],
                        [7.3, 7.4],
                        [6.1, 6.1],
                        [6.6, 8.9],
                        [7.4, 6.1],
                        [6.1, 7],
                        [5.6, 5.9],
                        [6.3, 7.1]
                    ],
                    "error": {
                        "size": "7px",
                        "line-color": "#cc0000",
                        "line-width": 1,
                        "alpha": 0.7
                    },
                    "line-color": "#000080",
                    "line-width": 1,
                    "marker": {
                        "size": 3,
                        "background-color": "#000080",
                        "border-color": "#cc0000"
                    }
                },
                "scale-y": {
                    "guide": {
                        "line-style": "dotted"
                    }
                },
                "series": [{
                    "values": [35, 42, 67, 89, 25, 34, 67, 85, 30, 33, 34, 95]
                }]
            };
    
            zingchart.render({
                id: 'myChart',
                data: myConfig,
                height: 400,
                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>
    
          
    var myConfig = {
      "type":"line",
      "plot":{
        "errors":[
          [5.5,6.3],
          [8,9],
          [5.1,6],
          [6.3,7.4],
          [4,5],
          [7.3,7.4],
          [6.1,6.1],
          [6.6,8.9],
          [7.4,6.1],
          [6.1,7],
          [5.6,5.9],
          [6.3,7.1]
        ],
        "error":{
          "size":"7px",
          "line-color":"#cc0000",
          "line-width":1,
          "alpha":0.7
        },
        "line-color":"#000080",
        "line-width":1,
        "marker":{
          "size":3,
          "background-color":"#000080",
          "border-color":"#cc0000"
        }
      },
      "scale-y":{
        "guide":{
          "line-style":"dotted"
        }
      },
      "series":[
        {
          "values": [35,42,67,89,25,34,67,85,30,33,34,95]
        }
      ]
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig, 
    	height: 400, 
    	width: "100%" 
    });