You can do this is one of two ways. You can either set the labels in the
query (query.setQuery('select A as labelA,B as labelB,C,F, sum(D), sum(E)
group by A,B,C,F');), or you can set the series' legend title directly
through the options by using the undocumented labelInLegend option for the
series object. You can find documentation for the series object
here<https://developers.google.com/chart/interactive/docs/gallery/columnchart>
.- Sergey On Mon, Jun 24, 2013 at 7:48 AM, Spencer James <[email protected]> wrote: > I've successfully pulled in data from a Google Spreadsheet and created a > chart out of it, but I am having a tough time labeling the data > appropriately. After this line of code, how do you add in an option to > label the columns so that the chart legend says what I specify instead of > sum Colname? > > query.setQuery('select A,B,C,F, sum(D), sum(E) group by A,B,C,F'); > > > Thanks! > > Spencer > > -- > 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/groups/opt_out. > > > -- 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/groups/opt_out.
