The legend labels are derived from the column labels in the DataTable, so 
if you want to change the legend, you need to alter the column labels.  You 
can do that by calling the #setColumnLabel method on your joined DataTable:

joinedData.setColumnLabel(1, 'John');
joinedData.setColumnLabel(2, 'Jane');

On Thursday, July 10, 2014 4:23:04 PM UTC-4, Kyle Adams wrote:
>
> I've joined two tables together to put into a single chart to compare the 
> data, but the column heading is showing up in the legend and I want to 
> instead have the name of the data set that that line of data came from, 
> since I'm comparing the results from two data sets. How do I change the 
> legend and make the label names there static?
>
> For example, say I'm trying to compare heights at different ages for two 
> people. I've combined the individual data tables for these people, but I'd 
> like to have their names in the legend, so that as I look at the lines for 
> their heights, which are represented in different colors, I can tell which 
> person is represented by which line.
>

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to