* @param orentation //0=top 1=right 2=bottom 3=left
*
*/
- axis: function (x, y, length, from, to, steps, orientation, labels, type, dashsize, paper) {
+ axis: function (x, y, length, from, to, steps, orientation, labels, type, dashsize, paper)
+ {
+ if (R.is(x,"object")) {
+ opts = x;
+ x = opts.x;
+ y = opts.y;
+ length = opts.length;
+ from = opts.from;
+ to = opts.to;
+ steps = opts.steps;
+ orientation = opts.orientation;
+ labels = opts.labels,
+ type = opts.type,
+ dashsize = opts.dashsize;
+ paper = opts.paper;
+
+
+ }
dashsize = dashsize == null ? 2 : dashsize;
type = type || "t";
steps = steps || 10;