8

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!!

2

1 Answer 1

20

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.