Hi, I am having problem receiving the RangeChangeEvent from
AnnotatedTimeLine.
The use case is that I would like to preserve the zoom range between
redraws of AnnotatedTimeLine.
Since the AnnotatedTimeLine API for GWT doesn't support
getVisibleChartRange(), I wanted to add a RangeChangeHandler to the
AnnotatedTimeLine to listen for RangeChanges.
However my RangeChangeHandler never seem to receive any events when I
manipulate the drawn graph.
code:
AnnotatedTimeLine graph = new AnnotatedTimeLine(WIDTH, HEIGHT);
graph.addRangeChangeHandler(new RangeChangeHandler() {
public void onRangeChange(RangeChangeEvent event) {
do something, like an alert
}
});
Options options = Options.create();
options.setDisplayAnnotations(true);
options.setAnnotationsWidth(15);
options.setDisplayZoomButtons(false);
graph.draw(dataTable, options);
Anyone manage to receive RangeChange events?
and a side note, anyone manage to get the setZoomStartTime and
setZoomEndTime methods working on options? When I set them, they seem
to occupy an period 10 hours earlier than my input parameter.
For example, if I set ZoomStartTime to 11pm and ZoomEndTime to
midnight, then the graph zooms to 1pm and 2pm instead.
However if I set ZoomStartTime to 11pm without setting ZoomEndTime,
then the graph correctly zooms to start at 11pm.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---