开发者

annotated time line

开发者 https://www.devze.com 2022-12-18 13:27 出处:网络
I\'m working with google annotated time line graphs: http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html

I'm working with google annotated time line graphs: http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html

My question is: I would like to limit the X-axis to show just a range of hours between 5:00 and 21:00. Today I'm showing already per hour but I would l开发者_运维知识库ike to limit the range and not show 24 hours. Is it possible?


Can't you just set the zoomStartTime and zoomEndTime to configure the part of the x axis that is shown?

Something like the following might do it, ie set the start and end date/times and also turn off the range and zoom functions.

annotatedtimeline.draw(data, {
                            'displayRangeSelector' : false,
                            'displayZoomButtons': false,
                            'zoomStartTime': new Date(2009, 1 ,2),
                            'zoomEndTime': new Date(2009, 1 ,5)});

Just a thought after looking here.

0

精彩评论

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

关注公众号