Asker Brejnrod
Asker Brejnrod

Reputation: 21

Google chart API labels

I have created a barchart with the API, but the names on the x-axis are too long and being cut off. Is there any way to fix this, like rotating them or moving them further down?

I have not been able to find anything in the documentation

Upvotes: 1

Views: 835

Answers (1)

Eric Z Beard
Eric Z Beard

Reputation: 38406

Set the chartArea.height to a smaller size.

... { width: 400, chartArea: { height: 200 }, ...

You can do the same with width, depending on which axis you are having a problem with.

Upvotes: 1

Related Questions