What is your preferred way to produce charts in a Ruby on Rails web application?

后端 未结 30 2025
后悔当初
后悔当初 2020-12-12 08:47

I\'d like to add some pie, bar and scatter charts to my Ruby on Rails web application. I want want them to be atractive, easy to add and not introduce much overhead.

<
30条回答
  •  心在旅途
    2020-12-12 09:20

    I have started using protovis to generate SVG charts with javascript. My basic approach in rails is to have a controller that returns the data to be charted as JSON, and scoop it up with a bit of javascript and protovis.

    Only downside, is that full IE support (Since it is based on SVG) is currently unavailable straight out of the box... However, current patches go a fair way to providing IE support, details of which can be found here.

提交回复
热议问题