Permalink
Browse files

fixed outdated examples in barchart text_axis

  • Loading branch information...
1 parent 0069baf commit 4e5c8db3a625f4db7381cc3af3a7ff358d5dd0b2 @liangzan liangzan committed Jul 19, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 examples/barchart/barchart_text_axis.html
View
18 examples/barchart/barchart_text_axis.html
@@ -2,24 +2,24 @@
<head>
<title>gRaphaël Bar Chart - a barchart with text x-axis</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" src="../../g.raphael.js"></script>
+ <script type="text/javascript" src="../../g.bar.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 barchart at 10, 10
// width 300, height 220, data: [10,20,30,40]
var max_val = 50
- r.g.barchart(40, 10, 320, 220, [[10,20,30,40]]);
- axis = r.g.axis(85,230,310,null,null,4,2,["Today", "Yesterday", "Tomorrow", "Future"], "|", 0);
+ r.barchart(40, 10, 320, 220, [[10,20,30,40]]);
+ axis = r.axis(85,230,310,null,null,4,2,["Today", "Yesterday", "Tomorrow", "Future"], "|", 0);
axis.text.attr({font:"12px Arial", "font-weight": "regular", "fill": "#333333"});
- // show y-axis by setting orientation to 1
- axis2 = r.g.axis(40,230,300,0,400,10,1);
+ // show y-axis by setting orientation to 1
+ axis2 = r.axis(40,230,300,0,400,10,1);
}
</script>
</head>
- <body>
+ <body>
</body>
-</html>
+</html>

0 comments on commit 4e5c8db

Please sign in to comment.