javascript - d3.js not passing a number to a scale -


i have created barchart want visualize different values when click layout. created functions pass them barchart can create barchart different dataset. example have these functions. first 2 overide functions in barchart can determine values want create barchart.the last render barchart.

bc1.overidekey((function(d){         return d.researcharea ;     }));     bc1.overidescale((function(d){         return d.values.sum;     }))   bc1.loadandrenderdataset(researchareas); 

then in barchart class error in below sections. says height , y not numbers. can me fix it?

selection         .style("fill", barcolour)         .style("fill-opacity", opacityscale(scalesetter))        .transition()        .delay(function(d, i) {            return / dataset.length * 2000;        })        .duration(1000)            .attr("x", function(d, i) {                 return xscale(i);            })            .attr("y", yscale(scalesetter))            .attr("width", xscale.rangeband())            .attr("height", maxbarheight-yscale(scalesetter)); 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -