If you're using dates in your chart, then sending
arrayToDataTable-compatible JSON is going to be difficult, if not
impossible, since arrayToDataTable doesn't support the Date String
representation. Other than that, you should just be able to send an array
of arrays and pass that into arrayToDataTable, and everything should work
exactly as expected. You might have to wrap it in something like {data: ...
}, and pull that out after you get the JSON on the client-side.

Is there a specific problem you're having? Something that doesn't work? Do
you have an example of data that you're sending that doesn't work that
you're confused about?

On Thu, Apr 30, 2015 at 4:53 PM Ben Falchuk <[email protected]> wrote:

> Does anyone have the JSON data that would have to be sent back to the
> client (ajax) in order to generate the histogram chart found in the example:
>
> https://developers.google.com/chart/interactive/docs/gallery/histogram
>
> ..while still using arrayToDataTable as in the example?
>
> thanks,
> ben.
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to