Davor Zubak
Davor Zubak

Reputation: 4746

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?

Upvotes: 7

Views: 39205

Answers (3)

user2225997
user2225997

Reputation: 91

For Areachart:

var options = {
tooltip: {textStyle:  {fontName: 'TimesNewRoman',fontSize: 12,bold: false}}
}

Thanks, Arun v

Upvotes: 6

Mrid
Mrid

Reputation: 397

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

Upvotes: 21

Robert Longson
Robert Longson

Reputation: 124089

legend.textStyle and tooltip.textStyle control this as documented for scatter charts for instance here

Upvotes: 5

Related Questions