philogb / jit

The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web
http://thejit.org
Other
1.51k stars 297 forks source link

Second heatmap's nodes not inserted in the DOM #154

Open epdejager opened 11 years ago

epdejager commented 11 years ago

When rendering two heatmaps on the same page, it seems that the first one renders fine, but although the second one's canvas is drawn, the nodes are not inserted in the DOM.

This means that for example no mouse-click events or labels can be added.

Does anyone know of a way around this?

As a side note, when a heatmap is on a hidden tab, the canvas size defaults to 0 (even when the parent container has non-zero height and width), resulting in an exception when cushioning is on, and in no graph (but a cluster of labels in the top left-hand corner) when cushioning is off.

philogb commented 11 years ago

You can find answers to those questions by joining the google group:

https://groups.google.com/forum/?hl=en#!pendingmember/javascript-information-visualization-toolkit/

2013/6/24 epdejager notifications@github.com

When rendering two heatmaps on the same page, it seems that the first one renders fine, but although the second one's canvas is drawn, the nodes are not inserted in the DOM.

This means that for example no mouse-click events or labels can be added.

Does anyone know of a way around this?

As a side note, when a heatmap is on a hidden tab, the canvas size defaults to 0 (even when the parent container has non-zero height and width), resulting in an exception when cushioning is on, and in no graph (but a cluster of labels in the top left-hand corner) when cushioning is off.

— Reply to this email directly or view it on GitHubhttps://github.com/philogb/jit/issues/154 .

Nicolas Garcia Belmonte - http://philogb.github.com/