When you said "The categories that I want to filter on are in fact the column headers" I thought you wanted to use a CategoryFilter to decide which columns to retain of the input DataTable. Is that correct ?
If so, can't you operate this way: Given the input datatable, - extract all column headers from it - create a CategoyFilter and use the extracted column headers for its ' values<http://code.google.com/apis/chart/interactive/docs/gallery/controls.html#categoryfilter>' option. This will let you pick among column headers. - forget the filterColumnIndex parameter as said in the other thread. - listen for statechange events. Once one comes in, use getState() to get which column headers the user has picked, map them to column positions, create a suitable view and feed it to the Annotated timeline as shown in the other thread. Granted, it's still a workaround that only partially uses the API, so it's debatable whether it's better or not than rolling your own custom thing, but doesn't it do the job? Or are you trying to do something different by populating the CategoryFilter with all the contents of a specific column? -- R. On 26 September 2011 16:40, Dan <[email protected]> wrote: > Hi Riccardo, > > I can see what you have done, but think this only works for using the > slider. You mention in the other thread that you have to specify a > filterColumnIndex > as it is mandatory but it won't be used. However as I want to use the > controlPicker control and this will make use of the filterColumnIndex > value, as all the values in the dropdown box will still be that of the > column rather than the contents of the header row. > > I think I'll have to build my own control until the ability to use control > filters to filter columns rather than just rows is available. Do you think > this is something that will be available in a later release? > > One other thing, I should probably create a new thread for it. Is the Query > Language likely to be able to join between multiple tables in the future? > > Thanks, > Dan > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-visualization-api/-/qKupNYKfJ-sJ. > > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
