The chart_url generated for the pie chart doesn't work. When I copied it and pasted it, the chd value was using '|' to separate instead of ','. Once I replaced the separator in the URL, I got a pie chart.

FYI: bar chart works fine.

Comments

Anonymous’s picture

It seems that in _chart_encode_data, when the bar chart is meant to be stacked the value should be an array, but when the chart is supposed to be a pie chart, the value should be a number. Currently, the pie chart value is also an array.

13rac1’s picture

Status: Active » Postponed (maintainer needs more info)

Can you check that this still occurs in the current dev? I'm not having an issue creating a bar chart. Can you post your code or view?

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Active

The problem was that pie charts don't display, not that bar charts don't. You can see the problem in a screencast that I posted recently, minute 12:45 of http://www.youtube.com/watch?v=RwY_2kmOgUc

13rac1’s picture

Title: Pie chart view doesn't display but bar chart does » 3D Pie chart view doesn't display but bar chart does

Oops, I mistyped. ;) I meant pie chart. I have no problem with pie charts in the current dev.

Ah... I watched the video. 3D pie charts don't work. You shouldn't suggest hacking modules, it is better to create a patch and post it to this issue so the problem is fixed. Is 3D pie chart the only chart which doesn't render correctly? Could a patch be as simple as checking the chart type?

Anonymous’s picture

While I understand that one shouldn't suggest hacking modules, I needed to get the screencast done. As this project is minimally maintained and there are many Needs review and RTBC patches in the queue, I did not believe that there would be quick enough turn around on a patch. I was in touch with the maintainer about maintenance of the module and my research institute funded an intern who spent a good number of hours creating patches for other issues in the queue, some of which he has posted and some which he will be posting shortly.

IIRC, the problem was with both pie charts and 3D pie charts (which should take the same parameter string for data I would assume). I am not familiar with all of the different chart types, so I'm not sure what the differences are in the strings that need to be provided.

13rac1’s picture

I've recently made 17 commits to this project, so it is currently maintained. If you can supply a patch for this issue, we can get this issue corrected quickly.

BenK’s picture

Subscribing

Pun-1’s picture

I actually just had this issue, an what fixed it for me was to disable the group from the view.

So I had Content type as group, and three different fields summed, and the pie chart started working, except it incorrectly charted the data :( - but that's probably some issue on my end.

Pierre.Vriens’s picture

Issue summary: View changes
Parent issue: » #2371075: Chart 7.x-2.x Release
Pierre.Vriens’s picture

Status: Active » Needs work

I've recently become a co-maintainer of chart. As of right now I have NOT done any commits, but quite a bit of issue triages. Note the status update I just did, and the parent item I added (check it out what it means). Can anybody tell me what the current story is about that edit (hacking if you want to call it like that), as in the video? And what about the #8: is that related to it, is it a work around for it? Once I understand where we are with this issue "today" I might be able to get it in status ... fixed ... Worst case: have to go figure it out myself, but that might take longer, ok?

PS to LIN: I'm probably not the only one who tells you so, but anyway: what a great video! So far I've found it to be the most valuable for somebody trying to get started with the chart module. A link to it is now in the chart community docu, I am planning to move it later on to a Chart Demos subpage of the chart module. And by the way, if you're looking for inspiration for similar videos about charting in drupal-land these days, you may want to checkout the Comparison of charting modules that I started some months ago. If you do, be prepared for quite an adventure as it relates to finding the Drupal module that best fits your charting needs ... and be prepared to get confused!

Pierre.Vriens’s picture

Title: 3D Pie chart view doesn't display but bar chart does » How to make a 3D Pie chart work with views
Issue summary: View changes

Adapting title to link to this issue from the Chart HowTos docu ...