• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style></style>
    </head>
    
    <body>
      <div id='myChart'></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "type": "line",
          "crosshair-x": {
            "plot-label": {
              "text": "%v<br>+%node-error-plus/-%node-error-minus",
              "text-align": "center",
              "font-color": "#660066",
              "font-family": "Georgia",
              "background-color": "#ffe6f0",
              "alpha": 0.7,
              "border-color": "none",
              "border-radius": "5px",
              "padding": "10%",
            },
            "scale-label": {
              "text": "%v",
              "transform": {
                "type": "date",
                "all": "%M %d, %Y<br>%g:%i %a"
              },
              "font-family": "Georgia"
            }
          },
          "plot": {
            "errors": [
              [3.3, 2.1],
              [3.6, 5],
              [3.1, 3.4],
              [3, 4],
              [1.9, 2.9],
              [6, 1.6],
              [5.5, 5.3],
              [4, 3]
            ],
            "error": {
              "size": "10px",
              "line-color": "#660066",
              "line-style": "dashed"
            },
            "tooltip": {
              "visible": false
            },
            "aspect": "spline",
            "styles": ["#ff0066", "#ff4d94", "#ff80b3", "#ffcce0", "#b3ffff", "#00b3b3", "#008080", "#004d4d"],
            "marker": {
              "visible": false
            }
          },
    
          "scale-x": {
            "min-value": "1459515600000",
            "max-value": "1459558800000",
            "transform": {
              "type": "date",
              "all": "%g:%i %a"
            },
            "max-items": 6
          },
          "utc": true,
          "timezone": -5, //EST time
          "scale-y": {
            "guide": {
              "line-style": "solid"
            }
          },
          "series": [{
            "values": [
              [1459517460000, 3],
              [1459539240000, 34],
              [1459542660000, 9],
              [1459547040000, 16],
              [1459553400000, 15],
              [1459553640000, 31],
              [1459554660000, 33],
              [1459557060000, 35]
            ]
          }]
        };
    
        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",
      "crosshair-x": {
        "plot-label": {
          "text": "%v<br>+%node-error-plus/-%node-error-minus",
          "text-align": "center",
          "font-color": "#660066",
          "font-family": "Georgia",
          "background-color": "#ffe6f0",
          "alpha": 0.7,
          "border-color": "none",
          "border-radius": "5px",
          "padding": "10%",
        },
        "scale-label": {
          "text": "%v",
          "transform": {
            "type": "date",
            "all": "%M %d, %Y<br>%g:%i %a"
          },
          "font-family": "Georgia"
        }
      },
      "plot": {
        "errors": [
          [3.3, 2.1],
          [3.6, 5],
          [3.1, 3.4],
          [3, 4],
          [1.9, 2.9],
          [6, 1.6],
          [5.5, 5.3],
          [4, 3]
        ],
        "error": {
          "size": "10px",
          "line-color": "#660066",
          "line-style": "dashed"
        },
        "tooltip": {
          "visible": false
        },
        "aspect": "spline",
        "styles": ["#ff0066", "#ff4d94", "#ff80b3", "#ffcce0", "#b3ffff", "#00b3b3", "#008080", "#004d4d"],
        "marker": {
          "visible": false
        }
      },
    
      "scale-x": {
        "min-value": "1459515600000",
        "max-value": "1459558800000",
        "transform": {
          "type": "date",
          "all": "%g:%i %a"
        },
        "max-items": 6
      },
      "utc": true,
      "timezone": -5, //EST time
      "scale-y": {
        "guide": {
          "line-style": "solid"
        }
      },
      "series": [{
        "values": [
          [1459517460000, 3],
          [1459539240000, 34],
          [1459542660000, 9],
          [1459547040000, 16],
          [1459553400000, 15],
          [1459553640000, 31],
          [1459554660000, 33],
          [1459557060000, 35]
        ]
      }]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 400,
      width: "100%"
    });