javascript - Issue with xscale and bar width -
i have bar graph initial width set. w= 500. initial length of data may vary 1 n. full length data in case if data.length =1 width of bar large too large shown here.
i did try reduce size increasing , decreasing width setting width
var w = 50* dataset.length; //create x scale bar graph var xscale = d3.scale.ordinal().domain(input.map(function (d) { return d.appname; })).rangeroundbands([0, w], 0.05);
xscale short rigth bar width bar width issue seems resolved see x-axis short , looks awkward. how fix issue?
Comments
Post a Comment