You found the setColumnLabel method under the DataTable section rather than the DataView section. I know it can be confusing the way the document is constructed.
You should be able to modify the underlying data table of a data view, but I'm not actually sure whether the column labels will be updated in the data view. Perhaps if you call setColumns() again to update the data view it would pull out the current labels from the data table to use as defaults. Hope that helps On Wed, Feb 24, 2016 at 1:49 PM, Jason <[email protected]> wrote: > Hey Daniel, > > Okay I am little confused by that. I think I must be misunderstanding some > of the material I have read, no surprise as I do not have must experience > in this. > > So when I read about this method of the DataView class I thought that was > exactly what you could do. When you use a DataView of the underlying "data" > it essentially pulls the data table you have created, reads that table > realtime, then allows you to alter how it is displayed in the > visualization. So then when I read this method below I took that I coul > change the label of a column through a DataView. What exactly does this > method do ? Sorry for dragging this out, just want a better understanding. > > setColumnLabel(columnIndex, label) > > Sets the label of a column. > > - columnIndex should be a number greater than or equal to zero, and > less than the number of columns as returned by the getNumberOfColumns() > method. > - label is a string with the label to assign to the column. The column > label is typically displayed as part of the visualization. For example the > column label can be displayed as a column header in a table, or as the > legend label in a pie chart. > > > -- > 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 > 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/e3115c0f-a1c6-454a-ba1f-e6112c147aad%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/e3115c0f-a1c6-454a-ba1f-e6112c147aad%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- 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 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/CAOtcSJNgwK079H6SpGpA0KdtA7bXhH%3Dd1h2u_T7e-URHyETTeQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
