This is the code I'm using to set the titles: 

if ($chart->getId() === 'Stats_2016') {

   $chart->setOptions(array(

      'vAxis' => array('title' => "Stats"),                      
      'hAxis' => array('title' => "Division"),

   ));

}



On Thursday, May 19, 2016 at 10:44:16 AM UTC-4, Yousef El-Khalili wrote:
>
> I'm generating a google column chart and I have this as my options array 
> (taken from the page source after the chart is generated)
>
> options: {"title":"Overall 
> Stats","height":350,"vAxis":{"title":"Stats"},"hAxis":{"title":"Division"}},
>
> However, this sets "Division" to both the horizontal and vertical axes for 
> some reason. 
>
> Does anyone know why?
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/ba870895-5dba-4763-bc9c-d3229b941606%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to