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

前端 未结 7 966
太阳男子
太阳男子 2020-12-11 15:00

Referring to the kind of chart shown here: http://code.google.com/apis/visualization/documentation/gallery/barchart.html

There doesn\'t seem to be a simple switch, a

7条回答
  •  [愿得一人]
    2020-12-11 15:30

    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

提交回复
热议问题