why the 'NumberRangeFilter' control does not have a event?

83 views
Skip to first unread message

Xi Shen

unread,
Jul 5, 2011, 5:52:08 AM7/5/11
to google-visua...@googlegroups.com
I want to use the 'NumberRangeFilter' control to filter the date values in my table. But this control can only filter integer numbers. I hope it provides an event when the block on the bar is moved, so I can update my table programmatically. 

Riccardo Govoni ☢

unread,
Jul 5, 2011, 8:17:28 AM7/5/11
to google-visua...@googlegroups.com

The Controls library is still beta-ish and as such offers a limited range of Controls for you to play with (that's why a date control is still missing).

As a previous post in the forum noted, you can still listen for changes occurring on a specific control by listening to the 'statechange' event.

google.visualization.events.addListener(control1, "statechange", function() {
  // your code.  Access the current control state via
  control1.getState();
});

Note that the event afaik is undocumented, hence its semantics or presence may change as the controls package transitions to a stable status.

/R.

On Jul 5, 2011 1:03 PM, "Xi Shen" <david...@gmail.com> wrote:
> I want to use the 'NumberRangeFilter<http://code.google.com/apis/chart/interactive/docs/gallery/controls.html#numberrangefilter>

> ' control to filter the date values in my table. But this control can only
> filter integer numbers. I hope it provides an event when the block on the
> bar is moved, so I can update my table programmatically.
>
> --
> You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Gl9WCtrJupoJ.
> To post to this group, send email to google-visua...@googlegroups.com.
> To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
>
Reply all
Reply to author
Forward
0 new messages