projectmesa / mesa-viz-tornado

Apache License 2.0
2 stars 8 forks source link

Graph resizing issue #4

Open m-wvj opened 3 years ago

m-wvj commented 3 years ago

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 commented 3 years ago

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