Henley Wing Chiu
Henley Wing Chiu

Reputation: 22515

Ruby on Rails Pie Chart Library?

Is there any library that can produce server-side pie charts using Ruby?

Such as this: enter image description here

Upvotes: 3

Views: 7282

Answers (6)

SSR
SSR

Reputation: 6438

This provides easy integration to your rails app by just one line of ruby code. hope this could help to anybody..

https://github.com/ankane/chartkick

Upvotes: 4

ragingsquirrel3
ragingsquirrel3

Reputation: 425

For Rails, look at quacky-charts at https://github.com/ragingsquirrel3/quacky-charts

Upvotes: 1

Amar
Amar

Reputation: 6942

You can use rchart for plotting various chart.

Upvotes: 0

rubyprince
rubyprince

Reputation: 17793

@bandito has given example of google javascript charting library. Well, there is Chart API from Google which sends back the required image, if you send the parameters in the API URL. See Image Charts. There is a specific section for pie charts there. I have used it once and found it very useful. Ofcourse there is loading time for the chart, and limitations to how far it is customizable, but for a simple pie chart like the one shown in figure, I think this is adequate.

See the getting started for understanding how the API works.

Also see Chart Wizard

Upvotes: 1

bandito
bandito

Reputation: 447

Google's javascript charting library is ok for simple tasks http://code.google.com/apis/chart/

And there are a lot of gems that wrap GoogleCharts http://googlecharts.rubyforge.org/ https://github.com/mattetti/googlecharts

EDIT: Didn't see the server side constraint. Ignore my answer :)

Upvotes: 1

DuoSRX
DuoSRX

Reputation: 4189

Yes, Gruff is pretty cool for this.

Upvotes: 3

Related Questions