You can change the label of a column by calling the DataTable#setColumnLabel method. Use it like this:
// assumes data is a DataTable object // set the label of the first column to "Foo" data.setColumnLabel(0, 'Foo'); On Tuesday, July 17, 2012 5:06:44 PM UTC-4, T-Roy wrote: > > I have created a column chart with a legend of 4 items and the legend > labels are the column name. However, the column heading comes from a > database query and I cannot change it there. > > Is there a way in javascript to modify the legend label? > > I do have a tooltip column data role so it would be great if there was a > legend data role that could be assigned but I don' see that available. any > ideas out there? > > T-Roy > -- 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/-/r5w60s9b3XEJ. 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.
