• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>ZingSoft Demo</title>
        <script src='http://cdn.zingchart.com/zingchart.min.js'></script>
    
        <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
        <style>
            zing-grid[loading] {
                height: 800px;
            }
        </style>
    </head>
    
    <body>
        <div id='myChart'></div>
        <script>
            ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
            var myJson = {
                "graphset": [{
                    "type": "line",
                    "title": {
                        "text": "Scale X Markers"
                    },
                    "scale-x": {
                        "markers": [{
                                "type": "line",
                                "range": [4],
                                "text": "Hi",
                                "label": {
                                    "fontSize": 18
                                }
                            },
                            {
                                "type": "line",
                                "range": [5],
                                "text": "Buy",
                                "label": {
                                    "fontSize": 18
                                }
                            },
                            {
                                "type": "area",
                                "background-color": "#D9D9D9",
                                "range": [1, 2],
                                "text": "Guy",
                                "label": {
                                    "fontSize": 18
                                }
                            }
                        ]
                    },
                    "series": [{
                        "values": [35, 42, 67, 89, 25, 34, 67, 85]
                    }]
                }]
            };
            zingchart.render({
                id: 'myChart',
                data: myJson,
                height: 400,
                width: '100%'
            });
        </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    	<head>
        <meta charset="utf-8">
        <title>ZingSoft Demo</title>
    	<script src='http://cdn.zingchart.com/zingchart.min.js'></script>
    	
    		<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    	<body>
    		<div id='myChart'></div>
    	</body>
    </html>
    
          
    var myJson = {
        "graphset": [
            {
                "type": "line",
                "title":{
                  "text": "Scale X Markers"
                },
                "scale-x":{
                    "markers":[
                      {
                        "type":"line",
                        "range":[4],
                        "text":"Hi",
                        "label": {
                          "fontSize":18
                        }
                      },
                      {
                        "type":"line",
                        "range":[5],
                        "text":"Buy",
                        "label": {
                          "fontSize":18
                        }
                      },
                      {
                        "type":"area",
                        "background-color":"#D9D9D9",
                        "range":[1,2],
                        "text":"Guy",
                        "label": {
                          "fontSize":18
                        }
                      }  
                    ]
                },
                "series": [
                    {
                        "values": [35,42,67,89,25,34,67,85]
                    }
                ]
            }
        ]
    };
    zingchart.render({ 
    	id : 'myChart', 
    	data : myJson, 
    	height: 400, 
    	width: '100%' 
    });