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

Treemap: avoid creating boxes too small to see #4

Closed timbunce closed 15 years ago

timbunce commented 15 years ago

For some data sets a lot of time can be spent processing boxes that are too small to see.

This can be fixed by adding the following 'precondition' check to createBox

// if box too small to be worth drawing then return empty string
if (coord.width * coord.height < 1) return "";
philogb commented 15 years ago

solved here:

http://github.com/philogb/jit/commit/3532396db05dc7e381b5abdf5fad611788ba1f76

Will be added in 1.1.3