[英]<g> attribute transform="translate(NaN,NaN)" when using Interactive Guideline
I am currently working with NVD3 using Angular Directive (angular-nvd3).我目前正在使用 Angular Directive (angular-nvd3) 处理 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我用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.关闭 useInteractiveGuideline 以消除错误。
Still, I do not know if it is a bug with nvd3 or d3 or with the dataset somehow.不过,我不知道这是否是 nvd3 或 d3 或数据集的错误。 Any suggestions appreciated.任何建议表示赞赏。
The bug was reported and is already solved in master:该错误已报告并已在 master 中解决:
https://github.com/novus/nvd3/issues/1373#event-475991935 https://github.com/novus/nvd3/issues/1373#event-475991935
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.