d3.js 转换不适用于 属性 方法

d3.js transition is not working with property method

我正在学习d3.js。在下面的脚本中,selection.transition()[=45 时似乎不起作用=]() 被链接起来,虽然它在 selection.property() 被放置时起作用在 transition().each() 中。难道我做错了什么?或者,这个规范是transition()

<input class="property_transition" type="checkbox">Property Transition Test</input><br>
<input class="property_transition" type="checkbox">Property Transition Test</input><br>
<input class="property_transition" type="checkbox">Property Transition Test</input><br>
<input class="property_transition" type="checkbox">Property Transition Test</input><br>

<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
    var elements = d3.selectAll(".property_transition");
    elements
        .transition()//.delay(function(d,i) { return i/elements.length *50; })
            .property("checked", true); // <== This is NOT working.
            //.each("end", function() { d3.select(this).property("checked",true); }); // <== This works!!!
</script>

有了这个脚本, Chrome 浏览器给出:

Uncaught TypeError: elements.transition(...).property is not a function

IE11 给出:

Object doesn't support property or method 'property'

谢谢,

简短的回答是 .property() 不是你可以在 D3 中转换的东西,特别是它不提供相应的功能(正如你在 Chrome 中得到的错误消息所暗示的那样) .

一般来说,转换二进制文件没有任何意义 属性 -- 中间值是多少?