Hi,

The title and the colors are part of the configuration options of the
visualization, and as such, are not part of what returns from the server.
If you want to return further data, and then use it in your client's code,
you can you use two seperate requests, one returns the json response, and
one returns data in whatever format you want. Or, i don't know how you
create your html but you can create it dynamically, etc...
But if you want to do it in the same request, there is a way...
You can put custom properties on the p property of the table, i.e.
table: {cols: [...], rows: [...], p: {myTitle: 'foo', ...} }
and then read it in the client-side with
dataTable.getTableProperty('myTitle')

Regards,
   VizBoy.



On Tue, Feb 24, 2009 at 10:25 PM, Phil <[email protected]> wrote:

>
> Hi all,
>
> I've got a page that creates JSON table structure that the client that
> reads in and makes a line graph with. Am I able to set the title and
> line colours from the data source side? I seem to only be able to do
> it from the client side.
>
> I've tried this:
> google.visualization.Query.setResponse({version:'0.5',reqId:'1',
> status:'ok', title:'hello' ,table: { cols:[...] rows:[...]}});
>
> google.visualization.Query.setResponse({version:'0.5',reqId:'1',
> status:'ok', table: { title:'hello', cols:[...] rows:[...]}});
>
> google.visualization.Query.setResponse({version:'0.5',reqId:'1',
> status:'ok', table: { title:'hello' cols:[...] rows:[...]}});
>
> and none of the above work... I'm assuming that the colours (if they
> can be set) will be set in the same place as the title is?
>
> Can anyone point me in the right direction?
>
> Cheers
>
> Phil
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to