• 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',
          title: {
            text: 'legendText attribute',
            fontFamily: 'Georgia'
          },
          subtitle: {
            text: 'Compare the series text (crosshairs) to the legend item text.',
            fontWeight: 'normal'
          },
          legend: {
            marker: {
              type: 'circle',
              showLine: true,
              size: 4
            },
            borderWidth: 1,
            borderRadius: '3px',
            align: 'right',
            verticalAlign: 'middle',
          },
          plot: {
            aspect: 'spline',
            tooltip: {
              visible: false
            }
          },
          crosshairX: {
            plotLabel: {
              multiple: true,
              borderRadius: '3px'
            },
            scaleLabel: {
              borderRadius: '3px'
            }
          },
          scaleY: {
            values: '0:300:50',
            guide: {
              lineStyle: 'dotted'
            }
          },
          series: [{
              values: [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9, 154.7, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3],
              text: 'Test 1-001A3',
              legendText: 'Test 1',
              lineColor: '#007acc',
              marker: {
                backgroundColor: '#007acc'
              }
            },
            {
              values: [184.8, 165.8, 122.4, 196.6, 179.1, 116.4, 175.9, 137.8, 120.9, 177.3, 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.1, 181.9],
              text: 'Test 2-002B4',
              legendText: 'Test 2',
              lineColor: '#0099ff',
              marker: {
                backgroundColor: '#0099ff'
              }
            },
            {
              values: [108.7, 132.9, 161.6, 192.1, 134.5, 149.4, 183.9, 124.4, 114.5, 121.9, 149.7, 124.3, 199.3, 151.4, 112.5, 113.5, 165.6, 139.5, 194.6, 184.4],
              text: 'Test 3-004C3',
              legendText: 'Test 3',
              lineColor: '#33adff',
              marker: {
                backgroundColor: '#33adff'
              }
            },
            {
              values: [113.2, 165.6, 139.5, 174.6, 184.4, 179.2, 173.1, 133.7, 190.5, 128.9, 169.3, 108.5, 124.3, 135.1, 122.5, 125.7, 157.6, 138.1, 162.8, 112.6],
              text: 'Test 4-004D1',
              legendText: 'Test 4',
              lineColor: '#66c2ff',
              marker: {
                backgroundColor: '#66c2ff'
              }
            },
            {
              values: [136.6, 160.8, 155.2, 158.7, 119.1, 192.4, 164.8, 151.4, 125.1, 106.9, 103.2, 158.6, 100.7, 137.2, 108.1, 162.7, 192.8, 149.2, 142.8, 134.3],
              text: 'Test 5-034CE',
              legendText: 'Test 5',
              lineColor: '#99d6ff',
              marker: {
                backgroundColor: '#99d6ff'
              }
            }
          ]
        };
    
        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',
      title: {
        text: 'legendText attribute',
        fontFamily: 'Georgia'
      },
      subtitle: {
        text: 'Compare the series text (crosshairs) to the legend item text.',
        fontWeight: 'normal'
      },
      legend: {
        marker: {
          type: 'circle',
          showLine: true,
          size: 4
        },
        borderWidth: 1,
        borderRadius: '3px',
        align: 'right',
        verticalAlign: 'middle',
      },
      plot: {
        aspect: 'spline',
        tooltip: {
          visible: false
        }
      },
      crosshairX: {
        plotLabel: {
          multiple: true,
          borderRadius: '3px'
        },
        scaleLabel: {
          borderRadius: '3px'
        }
      },
      scaleY: {
        values: '0:300:50',
        guide: {
          lineStyle: 'dotted'
        }
      },
      series: [{
          values: [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9, 154.7, 105.2, 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3],
          text: 'Test 1-001A3',
          legendText: 'Test 1',
          lineColor: '#007acc',
          marker: {
            backgroundColor: '#007acc'
          }
        },
        {
          values: [184.8, 165.8, 122.4, 196.6, 179.1, 116.4, 175.9, 137.8, 120.9, 177.3, 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.1, 181.9],
          text: 'Test 2-002B4',
          legendText: 'Test 2',
          lineColor: '#0099ff',
          marker: {
            backgroundColor: '#0099ff'
          }
        },
        {
          values: [108.7, 132.9, 161.6, 192.1, 134.5, 149.4, 183.9, 124.4, 114.5, 121.9, 149.7, 124.3, 199.3, 151.4, 112.5, 113.5, 165.6, 139.5, 194.6, 184.4],
          text: 'Test 3-004C3',
          legendText: 'Test 3',
          lineColor: '#33adff',
          marker: {
            backgroundColor: '#33adff'
          }
        },
        {
          values: [113.2, 165.6, 139.5, 174.6, 184.4, 179.2, 173.1, 133.7, 190.5, 128.9, 169.3, 108.5, 124.3, 135.1, 122.5, 125.7, 157.6, 138.1, 162.8, 112.6],
          text: 'Test 4-004D1',
          legendText: 'Test 4',
          lineColor: '#66c2ff',
          marker: {
            backgroundColor: '#66c2ff'
          }
        },
        {
          values: [136.6, 160.8, 155.2, 158.7, 119.1, 192.4, 164.8, 151.4, 125.1, 106.9, 103.2, 158.6, 100.7, 137.2, 108.1, 162.7, 192.8, 149.2, 142.8, 134.3],
          text: 'Test 5-034CE',
          legendText: 'Test 5',
          lineColor: '#99d6ff',
          marker: {
            backgroundColor: '#99d6ff'
          }
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 400,
      width: '100%'
    });