简体   繁体   中英

<g> attribute transform="translate(NaN,NaN)" when using Interactive Guideline

I am currently working with NVD3 using Angular Directive (angular-nvd3). I have a very simple line chart with very simple data.

Everything is working fine, at the beginning. However if you decide to turn off (disable) one set of data the error rises:

Error: Invalid value for <g> attribute transform="translate(NaN,NaN)"

I replicated the problem with a plunker: http://plnkr.co/edit/e4D619?p=preview

Disable any set to see the error in console. Resize the window and disable/enable the set to see the error again. Turn off useInteractiveGuideline to eliminate the errors.

Still, I do not know if it is a bug with nvd3 or d3 or with the dataset somehow. Any suggestions appreciated.

The bug was reported and is already solved in master:

https://github.com/novus/nvd3/issues/1373#event-475991935

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM