The pie charts generated by views charts show only two colors: red and green. See the attached file for an example. I would like to have a different color for each data point. Insight on how to accomplish this would be greatly appreciated. In general I think it would be a great idea to add configuration options for the colors on each chart.

Rob
Awakened Voice

CommentFileSizeAuthor
#7 patch.diff805 byteslucor
pie_chart.png17.21 KBAnonymous (not verified)

Comments

Jan van Diepen’s picture

Your problem is actually situated in the charts_graphs module. To be more specific in the open-flash-chart api module included with it. I posted a patch on the charts_graphs module issue queue http://drupal.org/node/599046.

irakli’s picture

Thanks Jan. Will review.

rsevero’s picture

Assigned: Unassigned » rsevero
Status: Active » Fixed

Already fixed in Charts and Graphs.

WorldFallz’s picture

Status: Fixed » Active

Sorry-- i keep finding bugs :-(

I'm getting this problem with:

Views 6.x-2.x-dev (up-to-date)
Charts and Graphs 6.x-2.x-dev (up-to-date)
Views Charts 6.x-1.x-dev (up-to-date)
Views Group By 6.x-1.0-rc1

WorldFallz’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
rsevero’s picture

Project: Views Charts » Charts and Graphs
Version: 6.x-1.x-dev » 6.x-2.0-beta1
Component: Miscellaneous » Code
Category: support » bug
Status: Active » Postponed (maintainer needs more info)

This is a "Charts and Graphs" issue, not "Views Charts".

Of the four charting libraries currently implemented - amCharts, Bluff, Google Charts and Open Charts Flash 2, only Bluff already had this feature working properly.

amCharts is fixed with http://drupal.org/cvs?commit=393380

Google Charts is fixed with http://drupal.org/cvs?commit=393382

I couldn't find info on how to set data series colors in Open Charts Flash 2. I need information on how to set for line and bar graphs (which usually share the same method) and for pie charts (which usually have a specific method). If someone can find it and point it out to me, I will fix this issue for Open Charts Flash 2 too.

lucor’s picture

StatusFileSize
new805 bytes

With the attached patch I'm able to use more colors for pie graph.
BTW it also allow to change the bg color for graph.

rsevero’s picture

Version: 6.x-2.0-beta1 » 6.x-2.3
Status: Postponed (maintainer needs more info) » Fixed

Thanks for the patch lucor. Sorry for the delay.

I'm finally closing this bug.

rsevero’s picture

Forgot to mention that lucor's patch was applied by http://drupal.org/cvs?commit=443848.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.