Closed (fixed)
Project:
FusionCharts
Version:
6.x-1.0
Component:
FusionCharts for CCK
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2009 at 14:56 UTC
Updated:
22 Jun 2011 at 06:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
aaron1234nz commentedYes this is possible. The charts on the page you are thinking of are created using the API. If you want to create multiple charts you can use CCK and add several widgets or create chart nodes then aggregate them with views.
Is this what you had in mind?
Comment #2
tootsietorres commentedI'm not sure I follow either of your suggestions:
"use CCK and add several widgets" - this would only work if every node had the same number of charts. Yes? I'm looking for something a little bit more dynamic.
"create chart nodes then aggregate them with views" - this is of course what I tried first. But I can only get the title of the charts to display in my view and not the whole chart. Have I missed something?
Thanks,
Tootsie
Comment #3
aaron1234nz commentedHave you tried a view of node teasers? This should include the chart in the view.
Comment #4
tootsietorres commentedOh! I got very excited for a few moments, but when I tried making a view with node teasers, nothing appeared. Sad.
Comment #5
aaron1234nz commentedThe ideal solution to this is to provide a views component. see existing issue http://drupal.org/node/365470
Comment #6
paranojik commentedThe problem was in a static "rendered" flag, which was set when rendering the first chart field. This caused only the first node on the page to have the chart rendered.
Comment #7
zeezhao commentedAnother way is to combine charts in a view by overriding the output of the view using:
See here for hooks: http://views.doc.logrus.com/group__views__hooks.html
I have done this before by using a view to create the query to pull the results, then overriding the output by calling fusioncharts to do as many plots as required. This is a custom module though.
Comment #8
aaron1234nz commentedThanks for the patch