I am using Prawn to generate pdfs reports. I need to put in my report a simple bar graph. Currently what is the best way to insert a graph in a prawn pdf ?
Asked
Active
Viewed 1,084 times
1 Answers
1
There are a few ways you might insert a bar graph using Prawn:
- Try the prawn-graph gem
- Use the Prawn Graphics API to draw rectangles, lines, and text yourself
- Find an SVG graph/chart library you like, render the graph in SVG, and then use prawn-svg to insert the SVG into your PDF

johnford
- 306
- 4
- 7