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(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Programming Language', 'Used as of 2019'], ['Javascript', 20], ['Python', 18], ['Java', 15], ['Php', 13], ['C', 11], ['C++', 9], ['C#', 7], ['ruby', 5], ['go', 2] ]); var options = { title: 'Programming Language Used as of 2019', width: 600, height: 400, sliceVisibilityThreshold: .10 }; var chart = new google.visualization.PieChart(document.getElementById('point')); chart.draw(data, options); } </script> </body> </html>
OUTPUT
×

Save as Private