Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

3DGraph disappears when setSize() is called #2274

Closed
marcinjahn opened this issue Nov 7, 2016 · 3 comments
Closed

3DGraph disappears when setSize() is called #2274

marcinjahn opened this issue Nov 7, 2016 · 3 comments

Comments

@marcinjahn
Copy link
Contributor

marcinjahn commented Nov 7, 2016

Hi, I've been experimenting with 3DGraph (bar-style).
It's been great, but i have one issue:
When I call graph.setSize(x, y) (for example graph3d.setSize('400px', '400px');) the graph disappears and i only see its background! In order to see the graph again, I have to move the camera with my mouse a little bit and the graph reappears again.
Here you can see what I just described: http://codepen.io/Loreno/pen/WGmJmz?editors=0010\
In the bottom I've called setSize. if you comment it out - the graph appears normally.

@wimrijnders
Copy link
Contributor

wimrijnders commented Nov 10, 2016

OK confirmed. A fix is in the process.

In the meantime, as a temporary measure, you can call graph.redraw() right after the call to setSize(). This will redraw the graph immediately.

@marcinjahn
Copy link
Contributor Author

Yeah, I thought about the same thing, that's what I'm doing.

@wimrijnders
Copy link
Contributor

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants