Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google chart controls types gallery

I'm building dashboard using Google dashboard link. I want to use Controls. I found only two of them on the page and only information saying:

The class name of the control. The google.visualization package name can be omitted for Google controls. Examples: CategoryFilter, NumberRangeFilter.

My question is where can I find other controls types (CategoryFilter, NumberRangeFilter)? I've searched Internet, including Google for Developers and found only those examples, but there is no type names.

Thanks

like image 878
Strabek Avatar asked Sep 03 '25 04:09

Strabek


2 Answers

Finally I found it.

I found:

  • StringFilter
  • NumberRangeFilter
  • CategoryFilter

and you can style/format them with options:

var filter = new google.visualization.ControlWrapper({
'controlType': 'CategoryFilter',
'containerId': 'containerId',
'options': {
    'filterColumnLabel': 'Column Label',
    'ui': {
        'allowTyping': false,
        'allowMultiple': true,
        'orientation': 'horizontal',
        'showRangeValues': false,
        'label': ''
    }
}

});

And this way you can style/format them the way you want.

like image 87
Strabek Avatar answered Sep 05 '25 00:09

Strabek


https://developers.google.com/chart/interactive/docs/gallery/controls

under contents menu on the right select 'ChartWrapper';

Controls Gallery

Filters are graphical elements that people can use to interactively select which data is displayed on your chart. This section describes the Google Chart filters: CategoryFilter, ChartRangeFilter, DateRangeFilter, NumberRangeFilter, and StringFilter.

like image 28
SuperTed Avatar answered Sep 04 '25 23:09

SuperTed