I suspect you are not actually getting the options structure in the browser
that you believe you are based on your server side code.  Can you point us
to a web page that shows the chart you are drawing?

On Thu, May 19, 2016 at 10:55 AM, Yousef El-Khalili <
[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/google-visualization-api/ba870895-5dba-4763-bc9c-d3229b941606%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>
[email protected] <[email protected]>   5CC, Cambridge 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 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/CAOtcSJMdZS%3DhV8AnRM2kwixAQ-FjEEdChkwHGrV8U7Fya31Adw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to