1
nv.d3.jsからボックスプロットをレンダリングしようとしています。 v.1.8.5およびd3.js v.3.4.4。私はboxplots.watchTransition is not a function
watchTransition()はangular.jsを持つnv.d3.jsの関数ではありません
次は私のコード
d3.selection.prototype.watchTransition = function(renderWatch){
var args = [this].concat([].slice.call(arguments, 1));
return renderWatch.transition.apply(renderWatch, args);
};
以降のコードで
であることを言ったindex.html【選択コードブレークからnv.d3.jsファイルの前にd3.jsファイルを追加していboxplots.watchTransition(renderWatch, 'nv-boxplot: boxplots')
.style('stroke-opacity', 1)
.style('fill-opacity', 0.75)
.delay(function(d,i) { return i * duration/data.length })
.attr('transform', function(d,i) {
return 'translate(' + (xScale(getX(d,i)) + xScale.rangeBand() * 0.05) + ', 0)';
});