GRaphael: How to increase the distance between columns in a histogram

I created a horizontal bar chart using the gRaphael chart library. I want to increase the distance between the bars. Is there any way to do this?

+5
source share
3 answers

Well, from what I know, there is no way to increase the interval, but you can do this by manipulating the value of the gutter during initialization.

Cm:

g.raphael docs here

+3
source

enlarge the groove. You can get it as an option or just change g.bar.js

0
source

, , width height .

, x_coords y_coords, , , , , .

var r = Raphael(div_tag);  

r.dotchart(x_center,y_center,width,height,x_coords,y_coords,data, {symbol: "o", max: 10, heat: true, axis: "0 0 1 1", axisxstep: axisx_step, axisystep: axisy_step, axisxlabels: g_xaxis, axisxtype: " ", axisytype: " ", axisylabels: g_yaxis}

Thus, the distance is proportional to the width of / (# values ​​along the x axis).

0
source

All Articles