Hi,

Am 22.05.2013, 17:57 Uhr, schrieb asgallant <[email protected]>:

Set the controls's options.ui.chartOptions.width to control the width of
the filter:
var control = new google.visualization.ControlWrapper({
    'controlType': 'ChartRangeFilter',
    'containerId': 'filter',
    'options': {
        'filterColumnLabel': 'Date',
        'ui': {
            'chartType': 'LineChart',
            'chartOptions': {
                width: 600,
                height: 50,
                'chartArea': {
// set the chartaArea.width to a percentage value that
is the same
// as the chartArea.width of the chart, so they line up
properly

Thanks. Difficult sometimes to see the wood for the trees with these nested options and no ability to set attributes directly.


Also, if you want to be able to filter by column names, I wrote a hack that
turns a CategoryFilter into a column filter:
http://jsfiddle.net/asgallant/WaUu2/

Very interesting, thanks.

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to