Neilos / bihisankey

A d3 javascript library/plugin for drawing bi-directional hierarchical sankey diagrams
68 stars 24 forks source link

Counts concatenating as strings instead of integers #7

Open RyanRLong opened 8 years ago

RyanRLong commented 8 years ago

Noticed that some of my values were coming back as scientific notation (ie 1.111111111 e47). In the mergeLinks() function, where value is being assigned, I cast both previousLink.value and currentLink.value to ints using parseInt, which seems to have fixed the issue.