开发者

Google chart API labels

开发者 https://www.devze.com 2023-04-10 18:43 出处:网络
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 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消