CoralineAda / seer

Seer is a lightweight, semantically rich wrapper for the Google Visualization API. It allows you to easily create a visualization of data in a variety of formats, including area charts, bar charts, column charts, gauges, line charts, and pie charts.
http://www.idolhands.com/ruby-on-rails/gems-plugins-and-engines/graphing-for-ruby-on-rails-with-seer
MIT License
133 stars 15 forks source link

Pie chart colors are all black. #11

Open Beartech opened 11 years ago

Beartech commented 11 years ago

I used the pie chart example found here:http://www.idolhands.com/ruby-on-rails/rails-gems-plugins-and-engines/simple-semantic-charts-and-graphs-for-ruby-on-rails-with-seer

But when I loaded the page all of the sliced were black. This was on a Rails 3.2/Ruby 1.97 default install, simple app made using scaffolding. I added the line: :colors => [] to the configuration of the chart,and it fixed the issue causing it to use default colors for the pie.

repslice commented 11 years ago

I had the same issue when trying to use the seer gem in my project. ruby 1.9.3p194/Rails 3.2.13.

Your suggestion of :colors => [] also worked for me, allowing default pie chart colors to be displayed. Thanks for that.

I'll report back if I find a cause.