google search, chart api

16 views
Skip to first unread message

Rafael Campaña

unread,
Dec 7, 2011, 3:01:41 AM12/7/11
to Google Visualization API
Hello,

when you type "sin(x)" in google search, it shows the graph of the
"sin(x)" function graph. Is that api wich google is using for that
kind of graphic?


Greets, Rafael.

Roni Biran

unread,
Dec 7, 2011, 3:24:29 AM12/7/11
to google-visua...@googlegroups.com
It does look like it although the plot in the search uses SVG.
The visualization API draws the chart in an IFRAME and the search plot is displayed in a DIV placed in the LI elements.
From the look of it I can suspect that the visualization team is in charge of it. The colors and the structure of the SVG. Do not forget that the image charts have functions outputs.
I believe that this feature will come in the near future. It's a matter of time....



2011/12/7 Rafael Campaña <raca...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


asgallant

unread,
Dec 7, 2011, 9:35:29 AM12/7/11
to google-visua...@googlegroups.com
You can emulate this behavior to an extent, by using the javascript Math object to build your DataTable contents: http://jsfiddle.net/Fmfrb/1/

Adjust the loop's starting and ending values to change the maximum and minimum values of the chart; adjusting the divisor changes the granularity of the data.
Reply all
Reply to author
Forward
0 new messages