Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph resizing issue #4

Open
m-wvj opened this issue Nov 11, 2020 · 1 comment
Open

Graph resizing issue #4

m-wvj opened this issue Nov 11, 2020 · 1 comment

Comments

@m-wvj
Copy link

m-wvj commented Nov 11, 2020

I would love to be precise, but honestly I am quite lost. Playing around with displaying graphs I could not manage to resize the graph properly. If I input a different canvas_height value it works just fine. But when I input a canvas_width, it modifies the height again. What is more, the result is reversed for me.

To Reproduce
chart = ChartModule(
series=[],
canvas_height=200,
canvas_width=200,
)
Will make a really tall graph, rather than a square one.

Is it a bug or I am just dumm? :)

@jackiekazil
Copy link
Member

After trying a bunch of varying widths and heights it does seem that you found a bug.
Not sure what is happening. It looks like the translation to javascript.

At this time, I am not sure what is going on, but adding this to the backlog and adding the extra context.

This is a screenshot of

    canvas_height=200,
    canvas_width=100,

Screen Shot 2020-11-23 at 12 08 59 AM

Screen Shot 2020-11-23 at 12 07 57 AM

@rht rht transferred this issue from projectmesa/mesa Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants