Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google charts change haxis font size

Tags:

Does anyone know a way to change the font size of these dates? I want to make them a little smaller so they will all fit instead of skipping one each time..

enter image description here

like image 610
Alex van Es Avatar asked Nov 26 '14 18:11

Alex van Es


People also ask

How do I customize my Google chart?

You can use Google Chart Tools with their default setting - all customization is optional and the basic setup is launch-ready. However, charts can be easily customizable in case your webpage adopts a style which is at odds with provided defaults.

Are Google charts responsive?

In a particular screen size, the Google pie chart will display properly. But if you want to load Google pie chart properly in different screen resolution, it needs to responsive. To make Google pie chart responsive, HTML and JavaScript code need to be modified.


1 Answers

Try with:

options:{     hAxis : {          textStyle : {             fontSize: 7 // or the number you want         }      }  } 
like image 153
juvian Avatar answered Oct 08 '22 02:10

juvian