Timeline - Line chart - date display

32 views
Skip to first unread message

Henning Håkonsen

unread,
Jul 7, 2016, 8:33:08 AM7/7/16
to Google Visualization API
Hi

I am working on a website to show some information. I am displaying some line graphs and a timeline.

For the timeline I would like to show time the international way.

I found this, which has to be the american way to view dates. Does anyone know how to convert this to international standard. I would also like to get the same labels for the line graphs.
hAxis: {
          viewWindow
: {
            min
: new Date(2014, 11, 31, 18),
            max
: new Date(2015, 0, 3, 1)
         
},
          gridlines
: {
            count
: -1,
            units
: {
              days
: {format: ['MMM dd']},
              hours
: {format: ['HH:mm', 'ha']},
           
}
         
},
          minorGridlines
: {
            units
: {
              hours
: {format: ['hh:mm:ss a', 'ha']},
              minutes
: {format: ['HH:mm a Z', ':mm']}
           
}
         
}
       
}

Help is hugely appriciated.
Reply all
Reply to author
Forward
0 new messages