views:

564

answers:

4

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, and changing the axis color to white (on a white background) didn't seem to do anything. I even tried jquery to hide the selectors produced by the api output but no dice.

+1  A: 

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. :)

Elzo Valugi
A: 

axisFontSize : 0 will remove x-axis and y-axis data

Denny
A: 

Check out http://code.google.com/apis/chart/docs/gallery/bar_charts.html#axis_label_styles

Axis Label Styles chxs "axis_or_tick"

You'll notice this documentation: "_ - (Underscore) Draw neither axis line nor tick marks. If you want to hide an axis line, use this value."

Example: 'chxs=0,,0,0,_'

John Erck
A: 

Google changes the API so fast, this is what works today:

chart.draw(daily, {
    hAxis : {textColor: '#ffffff'},
    [... your other options here ...]
});
KKovacs