Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Google chart font size?

Is it possible to change Google chart font size, my problem is that when i shrink width and height of whole chart, text becomes small and unreadable, any way to custom set font size?

enter image description here

Also is it posible to change tooltip size , described as a in the image?

like image 836
Davor Zubak Avatar asked Feb 09 '12 09:02

Davor Zubak


People also ask

How do I get rid of the legend in my Google chart?

Populating the Google Chart without Legend The Legend is hidden by setting the legend property to none in the Google Chart Options. title: 'USA City Distribution', legend: 'none' // Hides the Legend.

How do you change the color of a chart on Google?

To change the colors assigned to data series in a specific chart: Select that chart, then on the right, open the STYLE tab. In the Color by section, select Series order, Bar order, or Slice order, depending on the type of chart. Click a color box to set the color for each series.

Can I use Google Chart offline?

NO! Your users' computers must have access to https://www.gstatic.com/charts/loader.js in order to use the interactive features of Google Charts. This is because the visualization libraries that your page requires are loaded dynamically before you use them.


1 Answers

in options, set legend and tooltip by

{legend:{textStyle:{fontSize:'xx', fontName:'xx'}}}
{tooltip:{textStyle:{fontSize:'xx', fontName:'xx'}}}

Check out here for more details

like image 176
Mrid Avatar answered Sep 25 '22 11:09

Mrid