• 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: 800px;
            }
        </style>
    </head>
    
    <body>
        <div id='myChart'></div>
        <script>
            ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
            var myConfig = {
                "graphset": [{
                        "type": "scatter",
                        title: {
                            text: 'Shared Scroll'
                        },
                        "x": 0,
                        "y": 0,
                        "height": "80%",
                        "width": "100%",
                        "plotarea": {
                            "margin": "30"
                        },
                        scrollX: {},
                        "scaleX": {
                            "zooming": true
                        },
                        "zoom": {
                            "shared": true
                        },
                        "scaleY": {
                            "values": "0:100:20",
                            "zooming": true,
                            "markers": [{
                                "type": "poly",
                                "border-width": 1,
                                "border-color": "#00f",
                                "background-color": "#f90",
                                "alpha": 0.5,
                                "range": [
                                    [3, 20],
                                    [4, 40],
                                    [5, 45],
                                    [6, 15]
                                ],
                                "pair-scale": "scale-x-1",
                                "value-range": true,
                                "label": {
                                    "text": "CCC"
                                }
                            }]
                        },
                        "plot": {
    
                        },
                        "series": [{
                            "values": [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69]
                        }]
                    },
                    {
                        "type": "scatter",
                        "x": 0,
                        "y": "80%",
                        "height": "20%",
                        "width": "100%",
                        "plotarea": {
                            "margin": "10 30 30 30"
                        },
                        scrollX: {},
                        "scaleX": {
                            "zooming": true
                        },
                        "zoom": {
                            "shared": true
                        },
                        "scaleY": {
                            "values": "0:100:20",
                            "zooming": true,
                            "markers": [{
                                "type": "poly",
                                "border-width": 1,
                                "border-color": "#00f",
                                "background-color": "#f90",
                                "alpha": 0.5,
                                "range": [
                                    [3, 20],
                                    [4, 40],
                                    [5, 45],
                                    [6, 15]
                                ],
                                "pair-scale": "scale-x-1",
                                "value-range": true,
                                "label": {
                                    "text": "CCC",
                                    "font-size": 6
                                }
                            }]
                        },
                        "plot": {
                            "marker": {
                                "size": 2
                            }
                        },
                        "series": [{
                            "values": [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69]
                        }]
                    }
                ]
            };
    
            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 = {
    "graphset":[
        {
            "type":"scatter",
            title:{
              text:'Shared Scroll'
            },
            "x":0,
            "y":0,
            "height":"80%",
            "width":"100%",
            "plotarea":{
                "margin":"30"
            },
            scrollX:{},
            "scaleX":{
                "zooming":true
            },
            "zoom":{
                "shared":true
            },
            "scaleY":{
                "values":"0:100:20",
                "zooming":true,
                "markers":[
                    {
                        "type":"poly",
                        "border-width":1,
                        "border-color":"#00f",
                        "background-color":"#f90",
                        "alpha":0.5,
                        "range":[[3,20],
                        [4,40],
                        [5,45],
                        [6,15]],
                        "pair-scale":"scale-x-1",
                        "value-range":true,
                        "label":{
                            "text":"CCC"
                        }
                    }
                ]
            },
            "plot":{
                
            },
            "series":[
                {
                    "values":[69,68,54,48,70,74,98,70,72,68,49,69]
                }
            ]
        },
         {
            "type":"scatter",
            "x":0,
            "y":"80%",
            "height":"20%",
            "width":"100%",
            "plotarea":{
                "margin":"10 30 30 30"
            },
            scrollX:{},
            "scaleX":{
                "zooming":true
            },
            "zoom":{
                "shared":true
            },
            "scaleY":{
                "values":"0:100:20",
                "zooming":true,
                "markers":[
                    {
                        "type":"poly",
                        "border-width":1,
                        "border-color":"#00f",
                        "background-color":"#f90",
                        "alpha":0.5,
                        "range":[[3,20],
                        [4,40],
                        [5,45],
                        [6,15]],
                        "pair-scale":"scale-x-1",
                        "value-range":true,
                        "label":{
                            "text":"CCC",
                            "font-size":6
                        }
                    }
                ]
            },
            "plot":{
                "marker":{
                    "size":2
                }
            },
            "series":[
                {
                    "values":[69,68,54,48,70,74,98,70,72,68,49,69]
                }
            ]
        }
    ]
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig, 
    	height: 400, 
    	width: '100%' 
    });