绘制x轴和y轴可以绘制graphael

时间:2014-09-23 10:32:41

标签: charts graphael jscharts

我正在制作条形图的graphael Chart,如下所示。我难以获得以下代码的x轴和y轴。

<script type="text/javascript" charset="utf-8">
       window.onload = function () {
                var r = Raphael("holder");
                //r.barchart(x, y, width, height, values(array), opts);
                var barChart =  r.barchart(100, 100, 300, 200, [100, 50, 50, 50, 50, 50, 20], 
                {stacked: true,width: 50,  
                //It is the Space between the bars and the size will be reduced 
                "gutter":"150%",                
                colors: [                   
                    "000-#d00-#900",
                    "000-#f64-#c31",
                    "000-#fc0-#c90",
                    "000-#3a3-#070",
                    "000-#2bc-#089",
                    "000-#00d-#00a",
                    "000-#808-#404"
                ]});
        };
</script>

以上代码的图表如下

enter image description here

现在我希望x和y轴值为空.X和Y标度。

我已经尝试了一些尚未解决的技术。我在选项中添加了轴:&#34; 0 0 1 1&#34; ,并尝试了其他几种解决方法但是徒劳无功

感谢您的回复。

0 个答案:

没有答案
相关问题