d3.js - d3 on brush traingle symbols disappears -
the grey strip in lower area allows user spread data across x axis .fiddle resizing apart triangle symbols generated disappear redraw using brush (ps: happen when run code same code browser , not jsfiddle!)
- my axis increases in length 0min repeated 3 4 times instead of showing 0.1 0.2 0.3 etc
milestone_marks.selectall(".milestone_markers") .data(milestones) .enter().append("path") .attr("d", d3.svg.symbol().type('triangle-down')) .attr('class', 'milestone_markers') .attr("transform", function (d) { return "translate(" + x__axis(d.processing_time) + "," + -7 + ")";})
and in brushed function write following:
d3.select('.milestone_marks').selectall('path').data(milestones).attr("d", d3.svg.symbol().type('triangle-down')).attr("transform", function (d) { return "translate(" + x__axis(d.processing_time) + "," + -7 + ")";})
any inputs appreciated.
Comments
Post a Comment