Maximum width for column in bar chart

后端 未结 6 1084
天命终不由人
天命终不由人 2021-02-14 09:35

I\'m looking for a way of limiting the column width in a chart, I\'m sure this ought to be relatively easy but I cant find a way of doing it.

I\'m populating a chart fro

6条回答
  •  时光取名叫无心
    2021-02-14 10:03

    Code for adjusting starting position if anyone is stuck on it:

    .attr("x", function(d, i) { return x1(d.seriesName) + (x1.rangeBand() - 100)/2 ;})
    

    P.S. : referring answer from Lars.

提交回复
热议问题