Can I use ChartRangeFilter and Timeline chart at the same time?

89 views
Skip to first unread message

JEONGEUN LEE

unread,
May 27, 2020, 2:19:53 AM5/27/20
to Google Visualization API
My dataTable for timeline chart like this:

        dataTable.addColumn({ type: 'string', id: 'Term' });   -> just number  (ex. 1, 2, 3....)
        dataTable.addColumn({ type: 'string', id: 'Name' });
        dataTable.addColumn({ type: 'date', id: 'Start' });
        dataTable.addColumn({ type: 'date', id: 'End' });

And I want to use ChartRangeFilter with Timeline chart like below image.

However, I can't display timeline chart with those errors :
One or more participants failed to draw()

The filter cannot operate on a column of type string. Column type must be one of: number, date, datetime or timeofday. Column role must be domain, and correlate to a continuous axis

To fix the errors, I excluded 'Term' and 'Name'.
Then the error message changed like this :
One or more participants failed to draw()
Invalid data table format: must have 3 or 4 data columns.

Timeline chart must have 3 or 5 data columns... So I tried to put 'Term' as number, then the error changed like this again:
One or more participants failed to draw()
Invalid data table format: column #0 must be of type 'string'

...
...
Is there really no way to use the ChartRange filter and Timeline chart at the same time?
I need help. Please..

+) I'm not a native English speaker... so I ask for your understanding.



Reply all
Reply to author
Forward
0 new messages