Yes the LineChart supports roles, including a second domain, though domain roles are rarely what you want to use.
The documentation for each chart lists the roles that are supported for it: https://developers.google.com/chart/interactive/docs/gallery/linechart#data-format I can't help you with how to encode your table with PHP. One good idea, however, is to display your data using a Table chart, just to see that it contains the data you think it should. https://developers.google.com/chart/interactive/docs/gallery/table On Sat, Nov 21, 2015 at 6:27 AM, dude <[email protected]> wrote: > Thank you. I couldn't find within the documentation what is supported. > > Thank you for you suggestion - I'll implement. Just one more question: > does LIneChart supports roles? and second domain role? > > How do you need to encode it into jsaon table (from PHP) - I tried adding > the role using two methods - just adding role to the column header: > > $tempcols[] =array('type' => 'number','role' => 'data','label'=> > 'polynomial'); > > and another way (suggested by somebody in the forums here who said that > json needs the p option to recognise roles: > > $tempcols[] =array('type' => 'datetime','p'=> array('role' => 'domain')); > > thank you again! > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/87115530-5d75-44b9-99c0-ac1802a15a2c%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/87115530-5d75-44b9-99c0-ac1802a15a2c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOUk%2BduCbnb42ZwsUb_AsRZMa2HURmsknEGk%2BpUDO_oyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
