You can try DataTable's custom properties. Look here<http://code.google.com/apis/visualization/documentation/dev/dsl_javadocs/index.html> (class DataTable, method setCustomProperty) for the data source server side, and here<http://code.google.com/apis/visualization/documentation/reference.html#DataTable>(function getTableProperty) for the client JS side.
On Wed, Oct 6, 2010 at 7:38 AM, Danack <[email protected]> wrote: > Hi, > > I was wondering if it is possible for a custom datasource to also > return metadata that is not used to display the chart but is used to > update a separate element on a page? > > What I'm trying to achieve here is that we would like to have multiple > charts showing different activities on a page but then also to have a > text summary of the data that is in those charts e.g. a chart that > shows revenue by day and then also a text element that shows the exact > values of 'average revenue', 'variance against target' etc. Some of > these values would be generated from the values in the charts but > others would be independent pieces of data. > > It would be possible to return this data as an extra element in the > datasource as part of the 'Wire Protocol' but it seems that this extra > data is not available after the "google.visualization.Query" has > returned and called the callback function for handling the data. > > Is there any way to achieve this, or do I need to make separate > requests to get metadata back? Apologies if this has been asked before > and answered - I had a look and couldn't see anything similar. > > cheers > Dan > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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.
