Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedIt 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.
Comment #2
13rac1 CreditAttribution: 13rac1 commentedCan 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?
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedThe 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
Comment #4
13rac1 CreditAttribution: 13rac1 commentedOops, 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?
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedWhile 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.
Comment #6
13rac1 CreditAttribution: 13rac1 commentedI'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.
Comment #7
BenK CreditAttribution: BenK commentedSubscribing
Comment #8
Pun-1 CreditAttribution: Pun-1 commentedI 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.
Comment #9
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedComment #10
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedI'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!
Comment #11
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedAdapting title to link to this issue from the Chart HowTos docu ...