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

hypertree bug/inconclusive error message #42

Closed wsdookadr closed 14 years ago

wsdookadr commented 14 years ago

Hi,

I am using jit, in particular the hypertree component, I make the graph and if I push in the .adjacencies array of a node a node id which is a javascript String object then I get

An invalid or illegal string was specified" code: "12
[Break on this error] ctx.arc(pos.x, pos.y, radius, 0, Math.PI * 2, true); 

I consider this to be inconclusive as an error message. If instead , I push in the .adjacencies array of a node .valueOf() that String object, IOW the primitive string the problem is fixed. Maybe you can include this quick fix in the error message.

Thanks

wsdookadr commented 14 years ago

_