• 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 = {
          layout: "2x2",
          graphset: [{
              type: "gauge",
              backgroundColor: "#BDBDBD",
              x: 0, //position from left of chart edge
              y: 0, //position top of chart
              height: "25%",
              width: "20%",
              plotarea: { //effects main chart region
                margin: "dynamic"
              },
              scale: {
                sizeFactor: 1.3
              },
              scaleR: {
                center: {
                  size: 10,
                  backgroundColor: "#fff",
                  borderColor: "#acabab"
                }
              },
              series: [{
                values: [42],
                palette: 0 //pulls first color from defalut theme
              }]
            },
            {
              type: "gauge",
              backgroundColor: "#a9a7a7",
              x: "20%",
              y: 0,
              height: "25%",
              width: "20%",
              plotarea: {
                margin: "dynamic"
              },
              scale: {
                sizeFactor: 1.3
              },
              scaleR: {
                center: {
                  size: 10,
                  backgroundColor: "#fff",
                  borderColor: "#acabab"
                }
              },
              series: [{
                values: [42],
                palette: 1 //pulls second color from defalut theme
              }]
            },
            {
              type: "gauge",
              backgroundColor: "#807f7f",
              x: "40%",
              y: 0,
              height: "25%",
              width: "20%",
              plotarea: {
                margin: "dynamic"
              },
              scale: {
                sizeFactor: 1.3
              },
              scaleR: {
                center: {
                  size: 10,
                  backgroundColor: "#fff",
                  borderColor: "#acabab"
                }
              },
              series: [{
                values: [42],
                palette: 2 //pulls third color from default theme 
              }]
            },
            {
              type: "gauge",
              backgroundColor: "#747373",
              x: "60%",
              y: 0,
              height: "25%",
              width: "20%",
              plotarea: {
                margin: "dynamic"
              },
              scale: {
                sizeFactor: 1.3
              },
              scaleR: {
                center: {
                  size: 10,
                  backgroundColor: "#fff",
                  borderColor: "#acabab"
                }
              },
              series: [{
                values: [42],
                palette: 3
              }]
            },
            {
              type: "gauge",
              backgroundColor: "#616161",
              x: "80%",
              y: 0,
              height: "25%",
              width: "20%",
              plotarea: {
                margin: "dynamic"
              },
              scale: {
                sizeFactor: 1.3
              },
              scaleR: {
                center: {
                  size: 10,
                  backgroundColor: "#fff",
                  borderColor: "#acabab"
                }
              },
              series: [{
                values: [42],
                palette: 4 //pulls fourth color from default theme
              }]
            },
            {
              type: "mixed",
              backgroundColor: "#E0E0E0",
              x: 0,
              y: "25%",
              height: "40%",
              width: "100%",
              plotarea: {
                margin: "dynamic"
              },
              series: [{
                  type: "line",
                  values: [35, 42, 67, 89, 50, 36, 35, 42, 67, 89, 50, 36]
                },
                {
                  type: "bar",
                  values: [28, 40, 39, 36, 8, 40, 39, 36, 8, 40, 39, 36]
                }
              ]
            },
            {
              type: "hbar",
              backgroundColor: "#F5F5F5",
              x: 0,
              y: "65%",
              height: "35%",
              width: "50%",
              plotarea: {
                margin: "dynamic"
              },
              series: [{
                  values: [42]
                },
                {
                  values: [36]
                }
              ]
            },
            {
              type: "scatter",
              backgroundColor: "#F5F5F5",
              x: "50%",
              y: "65%",
              height: "35%",
              width: "50%",
              plotarea: {
                margin: "dynamic"
              },
              series: [{
                  values: [42, 45, 98, 65, 74, 25, 45]
                },
                {
                  values: [36, 50, 65, 48, 35, 40, 45]
                }
              ]
            }
          ]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: 500,
          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 = {
      layout: "2x2",
      graphset: [{
          type: "gauge",
          backgroundColor: "#BDBDBD",
          x: 0, //position from left of chart edge
          y: 0, //position top of chart
          height: "25%",
          width: "20%",
          plotarea: { //effects main chart region
            margin: "dynamic"
          },
          scale: {
            sizeFactor: 1.3
          },
          scaleR: {
            center: {
              size: 10,
              backgroundColor: "#fff",
              borderColor: "#acabab"
            }
          },
          series: [{
            values: [42],
            palette: 0 //pulls first color from defalut theme
          }]
        },
        {
          type: "gauge",
          backgroundColor: "#a9a7a7",
          x: "20%",
          y: 0,
          height: "25%",
          width: "20%",
          plotarea: {
            margin: "dynamic"
          },
          scale: {
            sizeFactor: 1.3
          },
          scaleR: {
            center: {
              size: 10,
              backgroundColor: "#fff",
              borderColor: "#acabab"
            }
          },
          series: [{
            values: [42],
            palette: 1 //pulls second color from defalut theme
          }]
        },
        {
          type: "gauge",
          backgroundColor: "#807f7f",
          x: "40%",
          y: 0,
          height: "25%",
          width: "20%",
          plotarea: {
            margin: "dynamic"
          },
          scale: {
            sizeFactor: 1.3
          },
          scaleR: {
            center: {
              size: 10,
              backgroundColor: "#fff",
              borderColor: "#acabab"
            }
          },
          series: [{
            values: [42],
            palette: 2 //pulls third color from default theme 
          }]
        },
        {
          type: "gauge",
          backgroundColor: "#747373",
          x: "60%",
          y: 0,
          height: "25%",
          width: "20%",
          plotarea: {
            margin: "dynamic"
          },
          scale: {
            sizeFactor: 1.3
          },
          scaleR: {
            center: {
              size: 10,
              backgroundColor: "#fff",
              borderColor: "#acabab"
            }
          },
          series: [{
            values: [42],
            palette: 3
          }]
        },
        {
          type: "gauge",
          backgroundColor: "#616161",
          x: "80%",
          y: 0,
          height: "25%",
          width: "20%",
          plotarea: {
            margin: "dynamic"
          },
          scale: {
            sizeFactor: 1.3
          },
          scaleR: {
            center: {
              size: 10,
              backgroundColor: "#fff",
              borderColor: "#acabab"
            }
          },
          series: [{
            values: [42],
            palette: 4 //pulls fourth color from default theme
          }]
        },
        {
          type: "mixed",
          backgroundColor: "#E0E0E0",
          x: 0,
          y: "25%",
          height: "40%",
          width: "100%",
          plotarea: {
            margin: "dynamic"
          },
          series: [{
              type: "line",
              values: [35, 42, 67, 89, 50, 36, 35, 42, 67, 89, 50, 36]
            },
            {
              type: "bar",
              values: [28, 40, 39, 36, 8, 40, 39, 36, 8, 40, 39, 36]
            }
          ]
        },
        {
          type: "hbar",
          backgroundColor: "#F5F5F5",
          x: 0,
          y: "65%",
          height: "35%",
          width: "50%",
          plotarea: {
            margin: "dynamic"
          },
          series: [{
              values: [42]
            },
            {
              values: [36]
            }
          ]
        },
        {
          type: "scatter",
          backgroundColor: "#F5F5F5",
          x: "50%",
          y: "65%",
          height: "35%",
          width: "50%",
          plotarea: {
            margin: "dynamic"
          },
          series: [{
              values: [42, 45, 98, 65, 74, 25, 45]
            },
            {
              values: [36, 50, 65, 48, 35, 40, 45]
            }
          ]
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 500,
      width: '100%'
    });