diff options
Diffstat (limited to 'test/g.raphael/examples/barchart/barchart_custom_spacing.html')
| -rw-r--r-- | test/g.raphael/examples/barchart/barchart_custom_spacing.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/g.raphael/examples/barchart/barchart_custom_spacing.html b/test/g.raphael/examples/barchart/barchart_custom_spacing.html new file mode 100644 index 0000000..f7a51e7 --- /dev/null +++ b/test/g.raphael/examples/barchart/barchart_custom_spacing.html @@ -0,0 +1,21 @@ +<html> + <head> + <title>gRaphaël Bar Chart - a horizontal barchart with gutters</title> + <script type="text/javascript" src="../raphael-min.js"></script> + <script type="text/javascript" src="../../g.raphael-min.js"></script> + <script type="text/javascript" src="../../g.bar-min.js"></script> + <script type="text/javascript"> + window.onload = function() { + // Creates canvas 640 × 480 at 10, 50 + var r = Raphael(10, 50, 640, 480); + + // Creates a single series horizontal barchart at 10, 10 + // width 300, height 220, data: [10,20,30,40] + r.g.hbarchart(10, 10, 300, 220, [[10,20,30,40]], {"gutter":"40%"}); + // My bar sizes will be 36px high and gutter(space between) 14px. (for more on how this is calculated, refer to bar.markdown) + } + </script> + </head> + <body> + </body> +</html>
\ No newline at end of file |
