Needs work
Project:
Google Chart Tools: Image Charts
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 May 2011 at 23:08 UTC
Updated:
6 Nov 2014 at 18:24 UTC
Jump to comment: Most recent
Comments
Comment #1
roam2345 commentedI would also appreciate a document page on creating a chart from a view... I have been trying for weeks to get this working.
Would be greatly appreciated.
Comment #2
BenjamiB commentedsubscribe
Comment #3
leszek.hanusz commentedsubscribe
Comment #4
ScottW commentedI can get you started under Drupal 6 - I've not done a lot yet with 7.
1) Create your content type and add a node with that type
2) Add View (node type)
3) Set the filters to be something like Node: Published and node type = your type. In my case I did a test with an iFrame content type that had a url field.
4) Add your fields to the view - again, for my test I just added the content field that contained the url and took the various defaults
5) Change the view style from unformatted to Google Chart - select the type of chart you want (I did a QR Code - a chart not in the current 6.x module, but one I added to the module). Specify your width and height and select a field you want to use as a legend. Then select the fields you want to perform an operation on - in my case it was the URL field. Specify the operation you want to perform (I selected none since I just wanted the URL to be sent as it was).
6) Once I set the style information the preview display brought up the QR code. No PHP coding was harmed in the creation of the view
For me, the next step would be the create a Block display for the view, which I can then use on my pages - or a page display. You'll need to modify the process to do things for other types of charts - but this should get you started.
--Scott
Comment #5
13rac1 commentedSomeone want to do this? A simple How To for a pie chart would probably be best.
Comment #6
johnvHere's a nice post of LinClark showing how to do it: http://lin-clark.com/blog/turning-cias-data-pretty-pictures-your-site-us... . Chart module comes in afte 10 minutes.
Comment #7
BenK commentedSubscribing
Comment #8
BenK commentedIn the video referenced in comment #6, she actually makes a small bug fix (changing a pipe to a comma) that allows 3D pie charts to work in Views. It occurs at 13:30 in the video (total video length is 15:10).
Has anyone submitted this fix as an actual patch?
I tested this change and it works just like it does in the video... it is necessary to make pie charts work (and possibly some other charts, too).
--Ben
Comment #9
johnvI didn't apply this fix.
In my case, the pies did show up as expected. In the video, there were no pies at all.
However, I have this issue: #1256050: Charts showing nid as value instead of value .
Comment #10
13rac1 commented@Benk an issue for the pipe to comma change is #1117002: How to make a 3D Pie chart work with views.
I'd prefer text/images for the documentation. Ideally suitable for advanced_help. Try to work on it, once I clean up the rest of this issue queue.
Comment #11
Pierre.Vriens commentedComment #12
Pierre.Vriens commentedComment #13
Pierre.Vriens commented