2011-02-17 86 views

回答

3

嗯,從我所知道的來說,並沒有增加間距的方法,但是你可以通過在初始化期間操縱水槽值來實現。

參見:

g.raphael docs here

0

增加排水溝。它可以被接收作爲一個選項,或者只是改變g.bar.js

0

從我所使用dotchart看出,間距間接使用width和圖表的height控制。

我本來以爲x_coordsy_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} 

所以間距與寬度/(x軸上的值的數量)成正比。

相關問題