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', 'bar']}); google.charts.setOnLoadCallback(drawRightY); function drawRightY() { var data = google.visualization.arrayToDataTable([ ['Companies', 'Facebook', 'Youtube'], ['Honda', 6505000, 8008000], ['Hyundai', 6005000, 4008000], ['Kia', 2095000, 2196000], ['Jaguar', 5098100, 1003000], ['Toyota', 6105000, 5508000] ]); var options = { chart: { title: 'Car Companies - Advertising Statistics', subtitle: 'Based on Arpil 19 - Feb 20' }, height: 350, bars: 'horizontal', axes: { y: { 0: {side: 'right'} } } }; var materialChart = new google.charts.Bar(document.getElementById('point')); materialChart.draw(data, options); } </script> </body> </html>
OUTPUT
×

Save as Private