Setting fontName in category filter control

26 views
Skip to first unread message

dunba...@gmail.com

unread,
Dec 28, 2015, 1:58:48 PM12/28/15
to Google Visualization API
I am using category filters to control a number of charts and am looking for a way to set the font in the control in the same way as in the charts themselves, for example using the fontName in chart options. 

What is the options stanza to set the font name in a category filter? This doesn't seem to be documented anywhere. Here are the options I currently use:

var Filter1 = new google.visualization.ControlWrapper({
        controlType: 'CategoryFilter',
        containerId: 'Filter1_div',
        dataTable: data,
        options: {
            filterColumnLabel: 'label',
            ui: {
                label: 'label',
                allowTyping: false,
                allowMultiple: false,
                allowNone: false,
                selectedValuesLayout: 'aside',
'caption': 'Choose category',
//cssClass: 'columnFilter_class'
            }
        },
        state: initial_state
    });

 
Thanks, 
Nick 

Daniel LaLiberte

unread,
Dec 28, 2015, 2:50:01 PM12/28/15
to Google Visualization API
Hi Nick,

The controls don't use many of the same options as charts, even though the options are specified as part of the same structure.  This is something we need to work on, but until then, you'll have to rely on the cssClass option.  

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/41e9a4cb-dda5-4f35-abe3-e9ff4853cdd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Nick Dunbar

unread,
Dec 29, 2015, 6:41:46 AM12/29/15
to google-visua...@googlegroups.com
Thanks Dan, 

As I think I've mentioned in other threads, the controls and dashboards part of your API is looking somewhat stale so it would be great to see it going up your priority list for the next release. At present it requires too many hacks and workarounds that are expensive in developer time. I can give specific feedback if you need it. 

Regards, 
Nick 

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/8KpqVqHRmMg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
Reply all
Reply to author
Forward
0 new messages