-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Hi there. I am a total newb to Ruby and coding in general, but I have been messing around with a script which will pull data from Excel and create a graph (among others) and output it to a PDF.
Finally I got it to work and it produced a graph and output it to a PDF.
So, to test it further I wanted to make some data more representative of the data I will work with in the future and here I am stuck. This is beyond my skills. Way beyond.
When the graph exceeds ~40 data points, Prawn produces an error:
https://gist.github.com/Dysp/8e0b6a88eafb69d0c927
I'll be working with waaay larger data sets and I simply need to produce a line-graph that represents this data.
How do I address this issue? I am sorry if I am just not capable and it is easily fixable, but I don't know where to go for help but here.
Activity
claudiofullscreen commentedon Mar 25, 2016
Hello and thanks for using Squid.
I never tested with so many data points, so I can't be sure, but from your
error log looks like the *text *cannot fit into the PDF.
I would try again play around with options like legend: false or baseline:
false or any option that deals with text from
http://fullscreen.github.io/squid/
Let me know if that solves the issue!
On Fri, Mar 25, 2016 at 11:05 AM, Dysp notifications@github.com wrote:
Claudio Baccigalupo | Manager, Software Engineering | Fullscreen, Inc.
http://www.fullscreen.com
Dysp commentedon Mar 25, 2016
I actually tried it with a few of the options, but it didn't work. However if I put baseline: false, then it works beautifully. I even tested it a little further and went to 2880 datapoints and it still worked.
Thank you so much!
haseebelahi commentedon Nov 30, 2018
Did any of you guys find a fix to make this work with baseline: true? I want to show the category names at the bottom, maybe rotated 90 degrees so those can fit. I've been playing with the options but nothing seems to be working.
kangkyu commentedon May 21, 2019
https://github.com/Fullscreen/squid/blob/master/lib/squid/plotter.rb#L126 we might be able to set this
disable_wrap_by_char: trueasfalse