• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <link href="https://fonts.googleapis.com/css?family=Nothing+You+Could+Do" rel="stylesheet">
    
      <script 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: 'wordcloud',
          options: {
            words: [{
                text: 'Flowers',
                count: 100
              },
              {
                text: 'Alstroemeria',
                count: 5
              },
              {
                text: 'Bearded Iris',
                count: 15
              },
              {
                text: 'Chrysanthemum',
                count: 10
              },
              {
                text: 'Calla Lily',
                count: 20
              },
              {
                text: 'Daffodil',
                count: 15
              },
              {
                text: 'Freesia',
                count: 40
              },
              {
                text: 'Garden Party Lily',
                count: 5
              },
              {
                text: 'Gladiolus',
                count: 5
              },
              {
                text: 'Peony',
                count: 10
              },
              {
                text: 'Ranunculus',
                count: 5
              },
              {
                text: 'Rose',
                count: 25
              },
              {
                text: 'Stargazer Lily',
                count: 30
              },
              {
                text: 'Torch Lily',
                count: 10
              },
              {
                text: 'Tulip',
                count: 20
              }
            ],
            rotate: true,
            aspect: 'spiral',
            style: {
              alpha: 0.5,
              backgroundColor: '#FCE4EC',
              borderRadius: 5,
              fontFamily: 'Nothing You Could Do',
              padding: '5px 10px',
              textAlpha: 1,
              hoverState: {
                alpha: 0.8,
                backgroundColor: '#E3F2FD',
                borderColor: '#2196F3',
                borderRadius: 5,
                borderWidth: 1,
                lineStyle: 'dotted'
              },
              tooltip: {
                alpha: 0.5,
                backgroundColor: '#E8F5E9',
                borderColor: '#4CAF50',
                borderRadius: 5,
                borderWidth: 1,
                fontColor: '#4CAF50',
                fontFamily: 'Georgia',
                lineStyle: 'dashed',
                padding: '3px 5px',
                text: '%hits',
                textAlpha: 1,
                visible: true
              }
            }
          }
        };
    
        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=Nothing+You+Could+Do" rel="stylesheet">
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    
    <body>
      <div id="myChart"></div>
    </body>
    
    </html>
    
          
    var myConfig = {
      type: 'wordcloud',
      options: {
        words: [{
            text: 'Flowers',
            count: 100
          },
          {
            text: 'Alstroemeria',
            count: 5
          },
          {
            text: 'Bearded Iris',
            count: 15
          },
          {
            text: 'Chrysanthemum',
            count: 10
          },
          {
            text: 'Calla Lily',
            count: 20
          },
          {
            text: 'Daffodil',
            count: 15
          },
          {
            text: 'Freesia',
            count: 40
          },
          {
            text: 'Garden Party Lily',
            count: 5
          },
          {
            text: 'Gladiolus',
            count: 5
          },
          {
            text: 'Peony',
            count: 10
          },
          {
            text: 'Ranunculus',
            count: 5
          },
          {
            text: 'Rose',
            count: 25
          },
          {
            text: 'Stargazer Lily',
            count: 30
          },
          {
            text: 'Torch Lily',
            count: 10
          },
          {
            text: 'Tulip',
            count: 20
          }
        ],
        rotate: true,
        aspect: 'spiral',
        style: {
          alpha: 0.5,
          backgroundColor: '#FCE4EC',
          borderRadius: 5,
          fontFamily: 'Nothing You Could Do',
          padding: '5px 10px',
          textAlpha: 1,
          hoverState: {
            alpha: 0.8,
            backgroundColor: '#E3F2FD',
            borderColor: '#2196F3',
            borderRadius: 5,
            borderWidth: 1,
            lineStyle: 'dotted'
          },
          tooltip: {
            alpha: 0.5,
            backgroundColor: '#E8F5E9',
            borderColor: '#4CAF50',
            borderRadius: 5,
            borderWidth: 1,
            fontColor: '#4CAF50',
            fontFamily: 'Georgia',
            lineStyle: 'dashed',
            padding: '3px 5px',
            text: '%hits',
            textAlpha: 1,
            visible: true
          }
        }
      }
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 400,
      width: '100%'
    });