How do you remove the x-axis from a bar chart produced by Google’s Visualization API?

You can set hAxis.textPosition to the value of ‘none

For example:

var options = {

                hAxis: { textPosition: 'none' },
            };

chart.draw(data, options);

See https://developers.google.com/chart/interactive/docs/gallery/barchart#Configuration_Options

Leave a Comment