I have a few questions regarding Google Chart Tools.
Do we actually need a spreadsheet to populate the charts?
Are we allowed to query a SQL Database and use the results as the data for the chart? If yes, in what format should it be?
This will be my first time using Google Chart Tools so I am confused about how things must be done. Thanks!
you can use json as data source, so if you want, you could make a page that returns the query result in json format. Its all in the doc
http://code.google.com/apis/chart/interactive/docs/dev/implementing_data_source.html
and there's a good exemple in the code playground:
http://code.google.com/apis/ajax/playground/?type=visualization#chartwrapper_with_remote_data
Good Luck
Related
I haven't had much luck finding any docs or examples on this. It might be that what I require is not currently possible but:
I'm trying to make a call to our qlikview server that retrieves data from a chart in a qvw inputting certain parameters. I am trying to do this in php. Can anyone point me to documentation or examples of this.
I think what you're asking for is get the data from a chart. This is not directly possible. But you have options:
You can embed a QlikView object in a page. See this guide:
http://community.qlik.com/blogs/qlikviewdesignblog/2013/06/14/making-qlikview-part-of-the-story-embedding-objects-into-web-pages
Or you can after a reload, execute a macro, that outputs the
contents of a chart, into a CSV file that you can place in
webfolder. This CSV could then be read by PHP.
I have a google chart which is a table and I need to have an option to export the data to excel or csv.
Can this be done within google charts API? I found a few pages with code but that was with the data coming from google docs where as my data is coming from mySQL. My table also has some StringFilters so the exported data should only be the data left after filtering.
If this can't be dont via the API what would be the best way to do this... Can I get the filtered data into any other format that I can use?
Any help is much appreciated
Thanks
Upload to a Google Spreadsheet using PHP (you may want to use ajax for this) or server side language of your choice and convert to Excel from there.
OR
Use the built in toolbar functionality:
https://developers.google.com/chart/interactive/docs/gallery/toolbar
I sampled a small wikipedia collection from 2008 and trying generate a graph similar to this: http://en.wikipedia.org/wiki/File:Wikipedia-n-zipf.png
from the processing I did. I have word frequencies and ranks of words. How can I generate the graph on the fly from the data I collected? Thanks.
If I am understanding your question correctly, you want to generate PNG charts on the fly?
This Page lists a few great chart engines for PHP. If you want to generate graphics using PHP for word frequencies, my personal favorite is PCHART It is a really nice library to generate charts like that.
Google Chart is completely free and doesn't use as much server power, but you have much less control over caching, styling, etc. The key difference here is that the actual image generation is done by Google.
If you want it to look exactly like that, you can use any of them and use the most basic settings to get what you need.
I think you want to use the google chart api / graph tools.
You can find it here
Line charts documentation and examples
Which is the best line chart generation tool. i need to use it in ma web page. I could also be able to save it to image format. It should be able to plot graph based on a timeline such data pertaining to a particular range of time. I got sucked up using Google Chart. Problem with scaling in that. Any things else???
i highly recommend highcharts has a great documentation and awesome demostrations.
I'd recommend flot, it is lightweight, purely javascript based, and very powerful and extensible.
We've had good results with http://www.jqplot.com/.
I've googled tons of times but i really find flash map charts where you rollover and get a value. i already checked out anychart, anything better?
P.S. I don't want static image charts.
Thanks
To turn my comment into an answer:
If you want charts like Google Analytics, you can use the Google interactive charts API to create interactive maps. It's the same API. See: Google Goemap Visualization Examples
Take a look at AmMap http://www.ammap.com/ As far as I understand it is what you are looking for.
PHP/Swf is probably fit for your requirements
http://www.maani.us/charts/index.php
I recommend using a jquery plugin http://www.jqplot.com and avoid flash.
You can generate the input for the graphs using php.