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':['corechart']}); google.charts.setOnLoadCallback(drawSeriesChart); function drawSeriesChart() { var data = google.visualization.arrayToDataTable([ ['Name', 'Age', 'Weight', 'score'], ['Alex', 15, 39, 95], ['Bill', 20, 45, 90.5], ['Camero', 25, 55, 85.75], ['Jade', 35, 61, 90], ['Kim', 40, 50, 75], ['Lily', 48, 58, 79] ]); var options = { title: 'Volunteers Age vs Weight', height:400, width: 600, colorAxis: { colors: ['#33ccff', '#ff99cc'] }, hAxis: { title: 'Weight' }, vAxis: { title: 'Age' }, bubble: { textStyle: { fontSize: 11 } } }; var chart = new google.visualization.BubbleChart(document.getElementById('point')); chart.draw(data, options); } </script> </body> </html>
OUTPUT
×

Save as Private