• 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": "area",
          "title": {
            "text": "Legend Object"
          },
          "legend": {
            "background-color": "#ffe6e6",
            "border-width": 2,
            "border-color": "red",
            "border-radius": "5px",
            "padding": "10%",
            "layout": "5x1",
            "x": "82%",
            "y": "25%",
          },
          "plot": {
            "aspect": "spline",
            "stacked": true,
            "marker": {
              "visible": false
            }
          },
          "plotarea": {
            "margin-right": "25%",
          },
          "scale-y": {
            "values": "0:1000:200",
            "guide": {
              "line-style": "dotted"
            }
          },
          "series": [{
              "values": [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9],
              "text": "Test 1"
            },
            {
              "values": [84.8, 65.8, 122.4, 96.6, 279.1, 56.4, 275.9, 237.8],
              "text": "Test 2"
            },
            {
              "values": [108.7, 132.9, 61.6, 192.1, 134.5, 349.4, 183.9, 224.4],
              "text": "Test 3"
            },
            {
              "values": [213.2, 65.6, 139.5, 194.6, 184.4, 79.2, 73.1, 33.7],
              "text": "Test 4"
            },
            {
              "values": [236.6, 260.8, 155.2, 58.7, 119.1, 192.4, 164.8, 51.4],
              "text": "Test 5"
            }
          ]
        };
    
        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": "area",
      "title": {
        "text": "Legend Object"
      },
      "legend": {
        "background-color": "#ffe6e6",
        "border-width": 2,
        "border-color": "red",
        "border-radius": "5px",
        "padding": "10%",
        "layout": "5x1",
        "x": "82%",
        "y": "25%",
      },
      "plot": {
        "aspect": "spline",
        "stacked": true,
        "marker": {
          "visible": false
        }
      },
      "plotarea": {
        "margin-right": "25%",
      },
      "scale-y": {
        "values": "0:1000:200",
        "guide": {
          "line-style": "dotted"
        }
      },
      "series": [{
          "values": [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9],
          "text": "Test 1"
        },
        {
          "values": [84.8, 65.8, 122.4, 96.6, 279.1, 56.4, 275.9, 237.8],
          "text": "Test 2"
        },
        {
          "values": [108.7, 132.9, 61.6, 192.1, 134.5, 349.4, 183.9, 224.4],
          "text": "Test 3"
        },
        {
          "values": [213.2, 65.6, 139.5, 194.6, 184.4, 79.2, 73.1, 33.7],
          "text": "Test 4"
        },
        {
          "values": [236.6, 260.8, 155.2, 58.7, 119.1, 192.4, 164.8, 51.4],
          "text": "Test 5"
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 400,
      width: "100%"
    });