I just spent an embarrassing amount of time resolving this error and want to document the answer.
The following bit of code has the desired result on Chrome but not on Firefox:
svg=d3.select('svg').style({height : 100,width : 200})
Why?
The answer
svg=d3.select('svg').style({height : 100 + "px", width : 200 + "px"})
Looks like Chrome decides to default to"px" while Firefox want you to be explicit.
Hope this helps anyone having the same issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With