Skip to content

Column sizes wrong #7

@onenoc

Description

@onenoc

Hi, so there is a somewhat serious problem here. If x is the value, m is the max value in our input file, mb is the number of blocks (the character used to generate the bars) associated with m for a given window size, and xb is the number of blocks associated with x for the same window size, we want that

x/m = xb/mb

However, if m=6, x=1, and mb=100, we can't satisfy xb with an integer value. As the window size gets smaller, this issue becomes more apparent (you'll sometimes have 4 blocks for the value 1, but 9 blocks for the value 2). There are a couple possible solutions to this issue, but I'm not sure which approach is best, so I'd like your thoughts:
-have variable sized blocks for the very top block (not sure how we would do it, as currently our blocks are a char)
-have variable y-padding, again to try to make this equation hold with integers
-use some kind of fill/paint that just colors a region entirely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions