Since I can't seem to figure out how to edit my posts, here is a little bit
more information about what I mean.
Before, I created a separate data table for each chart, by saying
var data = new google.visualization.DataTable();
data.addRow(...);
data.addColumn(....);
etc...
In this way it is easy to add an annotaton, I could just call:
.addColumn({type: 'string', role: 'annotation'});
However, now if I simply set views: { columns: [] } in the chart
initialization, I am simply giving it access to the main data table. How
can I add annotations to the data when using this method?
On Monday, July 15, 2013 1:54:21 PM UTC+2, Trevor wrote:
>
> Thanks for your replies. I have begun using the view: { columns: [] }
> option which is working now.
>
> The only problem is that I'm not sure how to set annotations using the
> view: { columns: [] } option. When procedurally generating a 2d array and
> passing that as the data to the charts, it was quite easy to simply append
> a "role: annotation" column wherever it was needed. But if I am using the
> view: { columns: [] } option I am unsure how to add in the annotations. Any
> suggestions?
>
>>
--
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.