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!)

  1. 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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -