I'm using a simple Line Chart from Google Charts.
I have two problems:
Vertical and horizontal axis have a title. But I can't change their orientation. I want the vertical title written horizontally instead of vertically. vAxis and hAxis don't seem to have orientation options, any tips?
The same for horizontal legend. it is written horizontally and transforming en diagonal when there are a lot of info. I want to writes it everytime en diagonal.
So basically the two questions are the same. How to change the text orientation?
Thank!
It is possible now:
var options = {
title: "Test",
hAxis: {
direction: -1,
slantedText: true,
slantedTextAngle: 90 // here you can even use 180
}
};
There is a workaround for this. Already there is a question regarding this. You take a look at this Vertical labels with google charts API?. Hope this will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With