denisemauldin / d3-timeline

D3 timeline
BSD 3-Clause "New" or "Revised" License
168 stars 72 forks source link

appendLabel function - clicking on a label throws exception #26

Open hope4555 opened 4 years ago

hope4555 commented 4 years ago
  1. this is what i get when clicking on the label ReferenceError: xScale is not defined

  2. This code should not be there. It adds a strange rect above the timeline console.log("label click!"); var point = d3Selection.mouse(this); gParent.append("rect") .attr("id", "clickpoint") .attr("x", point[0]) .attr("width", 10) .attr("height", itemHeight);

hope4555 commented 4 years ago

I see it is fixed but npm is no updated