Jiahui Guo
Jiahui Guo

Reputation: 135

Changing the google chart API title and axis position and font style setting?

I am working on using the google chart api to create a scatter chart, but it seems that the position of title can only be changed to 'in' or 'out', and align to the left side. How can I change it to be centered outside of the chart? Also, how to cancel the style italic for the axis label? Thanks for your help!!

Upvotes: 8

Views: 9736

Answers (1)

Daniel Garcia
Daniel Garcia

Reputation: 729

For canceling the italic style on the axis titles, do something like this:

vAxis: {title: "Hours", titleTextStyle: {italic: false}},
hAxis: {title: "Month", titleTextStyle: {italic: false}},

It is an undocumented feature, but it works most of the time.

Upvotes: 20

Related Questions