hAxis direction in timeline

28 views
Skip to first unread message

Agha Usman

unread,
May 28, 2017, 8:27:53 PM5/28/17
to Google Visualization API
Hi Folks, 

I am rendering a timeline charts which is showing months from May 2016 to May 2017. Like below 


I want to reverse the order of months and show from May 2017 to May 2016. I tried to change the direction of axis but that didn't help either.  Please find the options configuration of the above given chart below.

var options = {
            colors
: ["#06a006", "#a03206"], //, "#a03206", "#efeb02"
            timeline
: {
                groupByRowLabel
: true,
                showBarLabels
: false
           
},
            tooltip
: {
                isHtml
: true
           
},
            hAxis
: {                
                textStyle
: {fontSize: 6},                
               
direction : -1
           
},
            backgroundColor
: "#efefef"
       
}


Any help or even saying "its not possible" is much appreciated. 


Reply all
Reply to author
Forward
0 new messages