• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>ZingSoft Demo</title>
        <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    
        <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 = {
                type: 'line',
                plot: {
                    aspect: 'spline',
                    marker: {
                        size: 3
                    },
                    error: {
                        size: 10
                    }
                },
                series: [{
                        values: [
                            [1.5, 34],
                            [2, 55],
                            [2.5, 71],
                            [3, 42],
                            [3.5, 39],
                            [4, 50],
                            [4.5, 70]
                        ],
                        lineColor: '#C2185B',
                        marker: {
                            backgroundColor: '#E3F2FD #0097A7',
                            borderColor: '#C2185B'
                        },
                        errors: [
                            [6],
                            [4],
                            [5],
                            [9],
                            [6],
                            [7],
                            [9]
                        ],
                        error: {
                            lineColor: '#0097A7',
                            lineStyle: 'dashed'
                        }
                    },
                    {
                        values: [
                            [5.5, 35],
                            [6, 42],
                            [6.5, 67],
                            [7, 75],
                            [7.5, 50],
                            [8, 34],
                            [8.5, 67]
                        ],
                        lineColor: '#388E3C',
                        marker: {
                            backgroundColor: '#E0F7FA #E64A19',
                            borderColor: '#388E3C'
                        },
                        errors: [
                            [5],
                            [4],
                            [6],
                            [3],
                            [7],
                            [4],
                            [8]
                        ],
                        error: {
                            lineColor: '#E64A19',
                            lineStyle: 'dotted'
                        }
                    }
                ],
    
                scaleX: {
                    values: '1:9:1'
                },
                scaleY: {
                    values: '0:100:25',
                    guide: {
                        lineStyle: 'solid'
                    }
                }
            };
    
            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>
    	  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    	
    		<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    	<body>
    		<div id='myChart'></div>
    	</body>
    </html>
    
          
    var myConfig = {
     	type: 'line', 
     	plot: {
     	  aspect: 'spline',
     	  marker: {
     	    size: 3
     	  },
     	  error: {
     	    size: 10
     	  }
     	},
    	series : [
    	  {
    			values : [
    			  [1.5,34],
    			  [2,55],
    			  [2.5,71],
    			  [3,42],
    			  [3.5,39],
    			  [4,50],
    			  [4.5,70]
    			],
    			lineColor: '#C2185B',
    			marker: {
    			  backgroundColor: '#E3F2FD #0097A7',
    			  borderColor: '#C2185B'
    			},
    			errors: [
    			  [6],
    			  [4],
    			  [5],
    			  [9],
    			  [6],
    			  [7],
    			  [9]
    			],
    			error: {
    			  lineColor: '#0097A7',
    			  lineStyle: 'dashed'
    			}
    		},
    		{
    			values : [
    			  [5.5,35],
    			  [6,42],
    			  [6.5,67],
    			  [7,75],
    			  [7.5,50],
    			  [8,34],
    			  [8.5,67]
    			],
    			lineColor: '#388E3C',
    			marker: {
    			  backgroundColor: '#E0F7FA #E64A19',
    			  borderColor: '#388E3C'
    			},
    			errors: [
    			  [5],
    			  [4],
    			  [6],
    			  [3],
    			  [7],
    			  [4],
    			  [8]
    			],
    			error: {
    			  lineColor: '#E64A19',
    			  lineStyle: 'dotted'
    			}
    		}
    	],
    	
    	scaleX: {
    	  values: '1:9:1'
    	},
    	scaleY: {
    	  values: '0:100:25',
    	  guide: {
    	    lineStyle: 'solid'
    	  }
    	}
    };
    
    zingchart.render({ 
    	id : 'myChart', 
    	data : myConfig, 
    	height: 400, 
    	width: '100%'
    });