-1

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 ?

volt
  • 347
  • 5
  • 19

1 Answers1

1

There are a few ways you might insert a bar graph using Prawn:

  1. Try the prawn-graph gem
  2. Use the Prawn Graphics API to draw rectangles, lines, and text yourself
  3. 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