Skip to content

Cannot fit #50

@Dysp

Description

@Dysp

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

claudiofullscreen commented on Mar 25, 2016

@claudiofullscreen
Contributor

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:

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.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#50

Claudio Baccigalupo | Manager, Software Engineering | Fullscreen, Inc.
http://www.fullscreen.com

Dysp

Dysp commented on Mar 25, 2016

@Dysp
Author

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

haseebelahi commented on Nov 30, 2018

@haseebelahi

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

kangkyu commented on May 21, 2019

@kangkyu
Contributor

https://github.com/Fullscreen/squid/blob/master/lib/squid/plotter.rb#L126 we might be able to set this disable_wrap_by_char: true as false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Dysp@kangkyu@claudiofullscreen@haseebelahi

        Issue actions

          Cannot fit · Issue #50 · nullscreen/squid