d3 getting invert value of Band Scales
问题 i am writing a Gantt Chart using d3 i have xScale with Time Scale(Time) this.xScale = d3.scaleTime() .domain([this.startDate,this.endDate]) .range([0,this.getWidth()]); and yScale as Band Scale (Resources) this.yScale = d3.scaleBand() .domain(resources.map(function(res){ return res.res_num; })) .rangeRound([0,this.getHeight()]) .paddingInner(.3) Problem is i need to drag and drop the task( SVG Rect) from one resource to another resources When i drag i am using the transfrom so its moving on