简体   繁体   English

<g>使用交互式指南时的属性 transform=&quot;translate(NaN,NaN)&quot;

[英]<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.

相关问题 错误:无效的值 <g> attribute transform =“scale(NaN)translate(NaN,NaN)” - Error: Invalid value for <g> attribute transform=“scale(NaN) translate(NaN, NaN)” D3.js 错误:<g> 属性变换:预期数字,“translate(NaN,NaN)”</g> - D3.js Error: <g> attribute transform: Expected number, “translate(NaN,NaN)” d3.js:5942错误:的值无效 <g> 属性transform =“ translate(NaN,0)” - d3.js:5942 Error: Invalid value for <g> attribute transform=“translate(NaN,0)” C3js和D3js错误:的值无效 <g> 属性transform =“ translate(0,NaN)” - C3js and D3js Error: Invalid value for <g> attribute transform=“translate(0,NaN)” JVectorMap 错误:<g> 属性转换:预期数字,“比例(NaN)翻译(N ...” - JVectorMap Error: <g> attribute transform: Expected number, "scale(NaN) translate(N…" d3.js arc.centroid(d):错误:的值无效 <text> 属性transform =“ translate(NaN,NaN)” - d3.js arc.centroid(d) : Error: Invalid value for <text> attribute transform=“translate(NaN,NaN)” 设置转换翻译<g>使用 JavaScript - Setting transform translate of <g> using Javascript 错误: <g> 属性转换:期望的数字,“ translate(undefined,undefi…” - Error: <g> attribute transform: Expected number, “translate(undefined,undefi…” 错误:<g>属性transform =“translate(undefined,undefined)”的值无效 - Error: Invalid value for <g> attribute transform=“translate(undefined,undefined)” Javascript属性为NaN - Javascript attribute is NaN
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM