The step option lets you indicate "the minimum possible change when 
dragging the slider thumbs: can be "year", "month", "hour", etc."
https://developers.google.com/chart/interactive/docs/gallery/controls#daterangefilter

Default is "day" and indeed in some cases it would be interesting to change 
it (mainly when we use the format option to display only months or years, 
like in the example provided in the documentation).

But I get an error: Invalid number for increment "year".

var slider = new google.visualization.ControlWrapper({
          'controlType': 'DateRangeFilter',
          'containerId': 'control',
          'options': {
            'filterColumnLabel': 'Year',
            'ui': { 
              'format': { 'pattern': 'yyyy' },
              'step': 'year'
            }
          }
        });

eg: 
http://savedbythegoog.appspot.com/?id=b7d4eda049d490ad41abd6ab2cb0a2d98e2c567e

Note that 'year' & 'month' seem to be broken but 'day' (default), 'hour', 
'minute' are working.
Is it a bug ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to