Click here to Skip to main content
16,012,611 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
how to annotations text vertically displayed in google column chart.

What I have tried:

CSS
annotations: {
                 textStyle: {
                 color: '#663399',
                 fontSize: 11,
                 textPosition: 'Vertical'
                 },
                 Vertical: true
                 },
Posted
Updated 27-Jan-18 5:17am

1 solution

With CSS3 Transform property you can solve this.
CSS3 transform property[^]
CSS
/* Safari */
-webkit-transform: rotate(-90deg);

/* Firefox */
-moz-transform: rotate(-90deg);

/* IE */
-ms-transform: rotate(-90deg);

/* Opera */
-o-transform: rotate(-90deg);

/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

Reference:
Text Rotation | CSS-Tricks[^]

Hope, it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900