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

前端 未结 7 981
太阳男子
太阳男子 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:46

    Their API has no function for this indeed, but:

    chart.draw( data, 
        {
            width: 400, 
            height: 240, 
            is3D: true, 
            legend :'none',
            axisFontSize : 0
        });
    

    Setting axisFontSize to 0 will remove your x-axis data. :)

提交回复
热议问题