Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove both axis from a Google Bar Chart (aka Chart API)

I can't find in the Chart API the way to remove any axis from a bar chart. For instance:

cht=bvg
chs=410x150
chd=s:StackOverflow

simple bar chart example

How to remove the gray x and y axis?

like image 466
Filippo Vitale Avatar asked Dec 13 '25 07:12

Filippo Vitale


2 Answers

Please try appending

&chxt=x,y&chxs=0,000000,10,0,,000000|1,000000,10,0,,000000&chxl=0:||1:|

alt text

like image 97
Alexander Farber Avatar answered Dec 15 '25 04:12

Alexander Farber


All I found is this trick: cover them with a white line and it works

cht=bvg
chs=410x150
chd=s:StackOverflow
chm=r,FFFFFF,0,-0.01,0.01,1
    R,FFFFFF,0,-0.01,0.01,1

alt text

...but any "cleaner" way?

like image 30
Filippo Vitale Avatar answered Dec 15 '25 05:12

Filippo Vitale



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!