I created a views block using the Google Chart Module. The views block takes multiple fields and outputs a chart based on data entered into the fields. The only problem is that the pie chart doesn't display any of the other variables:

Pie Chart
Column Chart

Column Chart
Pie Chart

I have the fields grouped by Content; Title, then the variables (i.e. African-american, Hispanic/latino, etc.). What do I need to do with the settings/php to make this work?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ecupaio’s picture

Issue summary: View changes
Pierre.Vriens’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Sorry for the delay to respond to this issue. I noticed it's related to the 7.x-1.1 release. However, in the meantime quite some fixes have been applied to this (old) version, as you can (partially) read also in #2371075: Chart 7.x-2.x Release.

Another approach might be to review the (newly created) chart documentation pages, maybe there is something in there that can help to pinpoint the problem. Disclaimer: these pages are work-in-progress (any contributions to it are appreciated).

Another approach is to try to verify the results you get by using the current 7.x-1.x-dev version.

Please get back with a status update about this issue, OK?

toddwoof’s picture

(I know this is an old issue, but posting here since this module seems very well distributed.)

I'm seeing this also, with this and every other chart module I've tried that includes a pie chart feature.

The issue seems to be that drawing a pie chart only works with a View that aggregates many nodes, and for which the chart shows the distribution of nodes based on one common criterion such as node type.

For example: Show a chart of nodes by type, where the label is the content type name, and the slices are the count of nodes of each type. I can do this.

But it doesn't work for a set of field values in one node.

For example: A content type has three fields: Large shirts sold, Medium shirts sold, Small shirts sold. Each node is the sales for one person. I want to show a pie chart of each person's sales on the page. So, I make a View: Filter by nodes of this type, with contextual filter of NID, and the three fields.

I can display this as a bar chart, but I can't show this in a pie chart.

First of all, I can't choose the field labels as the labels for the slices. There's no way to do that, since the label selection assumes one and only one criterion, such as node type. You can't choose "I want the field labels as the labels." And second, the pie chart display doesn't accept multiple fields in one node as slices.

So: Am I missing something, or is the issue here that the pie chart display simply isn't built to allow me to use field values in one node as slices?