HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src="https://www.gstatic.com/charts/loader.js"></script> </head> <body> <div id="point"> </div> <script> google.charts.load('current', {packages:['wordtree']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable( [ ['Phrases'], ['Dogs are friendly'], ['Dogs are lovely'], ['Dogs are security guard'], ['Dogs are better than cats'], ['Dogs eats bone'], ['Dogs love playing'], ['Dogs love kids'], ['Dogs are sometimes dangerous'], ['Dogs eats Cheese'] ]); var options = { height: 400, width: 600, maxFontSize: 15, colors: ['red'], wordtree: { format: 'implicit', word: 'Dogs' } }; var chart = new google.visualization.WordTree(document.getElementById('point')); chart.draw(data, options); } </script> </body> </html>
OUTPUT
×

Save as Private