Material Axis Format Example

An example of a Google Material Chart with Axis Formats.

HTML

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
       <div id="chart_div"></div>

JavaScript

google.charts.load('current', {'packages':['bar']});
      google.charts.setOnLoadCallback(drawChart);

      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Month', '2015', '2020'],
          ['January', 110000, 621000],
          ['February', 90000, 525630],
          ['March', 120000, 643480],
          ['April', 110000, 572000],
          ['May', 110000, 540000],
          ['June', 165000, 515750],
          ['July', 225000, 538500],
        ]);

        var options = {
          chart: {
            title: 'Total number of downloads of the 100 most popular Quicklisp libraries',
            subtitle: 'Comparison between 2015 and 2020',
          },
          bars: 'vertical',
          vAxis: {format: 'decimal'},
          height: 400,
          colors: ['#d95f02', '#1b9e77']
        };

        var chart = new google.charts.Bar(document.getElementById('chart_div'));

				chart.draw(data, google.charts.Bar.convertOptions(options));

       
      }