The functions to select columns for a view, are setColumns, and hideColumns. While setColumns get the (ordered) list of columns to be in the view, hideColumns get a list of columns that are in the view but should be removed. In your case, I would just keep a list of the column needed in a local var, and use setColumn each time the user changes the preferences, but it can be done also by hideColumns as well.
VizGuy On Mon, Dec 22, 2008 at 9:37 AM, [email protected] < [email protected]> wrote: > > Hi LH, > > this was grate thank you very much for help me. > i have add the data view and manage to add check boxes and when check > in those i can hide the time lines. > i did this with hideColumns(columnIndices). > > but small problem. can we set visible columns as we hide columns. > what is the method are we need to use when we want to display the time > line again. > is it setColumns(columnIndices). > i think this set method can not be used for that. > > best regards, > Sajeevi > > On Dec 19, 8:15 pm, LH <[email protected]> wrote: > > The annotated timeline takes a data table (or data view) in its > > constructor. That's what I was talking about. > > > > On Dec 19, 5:56 am, "[email protected]" > > > > <[email protected]> wrote: > > > Hi LH , > > > > > Thank you very much for your reply. i was refering to annotation > > > timeline graph.not about table . is this also can be done in > > > annotation timeline graph also. > > > > > best regards, > > > Sajeevi > > > > > On Dec 17, 6:27 pm, LH <[email protected]> wrote: > > > > > > Sajeevi, > > > > > > Use a DataView (http://code.google.com/apis/visualization/ > > > > documentation/reference.html#DataView). > > > > > > Make your underlying table with whatever columns, then construct a > set > > > > of checkboxes corresponding to the columns, and a data view that > takes > > > > the DataTable as its source. Populate the columns of the DataView > > > > (setColumns) based on whether the corresponding box is checked. I > > > > hope this helps. > > > > > > Best, > > > > LH > > > > > > On Dec 16, 9:35 pm, "[email protected]" > > > > > > <[email protected]> wrote: > > > > > Hi team, > > > > > > > what i want to do is displayed in the following link > > > > > > >http://finance.google.com/finance?q=NASDAQ%3AVRTU > > > > > > > can some one please explain me how this is done. > > > > > > > Thanks & best Regards, > > > > > Sajeevi > > > > > > > On Dec 16, 4:02 pm, "[email protected]" > > > > > > > <[email protected]> wrote: > > > > > > Hi Team, > > > > > > > > In annotation timeline graph when the we add many columns to that > > > > > > chart then it is not readable. > > > > > > can i know is there any way we can select the columns by the > user. > > > > > > > > i.e. > > > > > > data.addColumn('date', 'Date'); > > > > > > data.addColumn('number', 'Sold Pencils'); > > > > > > data.addColumn('number', 'Sold Books'); > > > > > > data.addColumn('number', 'Sold Pens'); > > > > > > data.addColumn('number', 'Sold Rulers'); > > > > > > data.addColumn('number', 'Sold Bags'); > > > > > > data.addColumn('number', 'Sold Shoes'); > > > > > > data.addColumn('number', 'Sold Erasers'); > > > > > > ............ > > > > > > > > from the UI the user should be able to select one or many columns > by > > > > > > check in the check box and then see the graph for that selected > > > > > > columns only. > > > > > > > > Thanks & best regards, > > > > > > Sajeevi. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
