bars = paper.set(),
covers = paper.set(),
barsteps = opts.barsteps || 20,
- colors = opts.colors || chartinst.colors,
- max = 3000;
+ colors = opts.colors || chartinst.colors;
+
opts.axis = opts.axis || "";
opts.baroffset = opts.baroffset || 50;
paper.path(path).attr({ stroke: "#fff", "stroke-width": 2 });
+ var max = 0;
+
+ values.forEach(function(value,i) {
+ if (!Raphael.is(values[0], "array")) {
+ value = [value];
+ }
+
+ value.forEach(function(v,k) {
+ max = (v > max) ? v : max;
+ });
+
+ });
+
//bars
var unit = barheight / max;
var indicator = [];
// right axis
+ax[1] && axis.push(
chartinst.rightAxis(
- x + width - opts.asixywidth ,
- y + height - opts.asixxheight,
+ width - opts.asixywidth,
+ height - opts.asixxheight,
height - y - opts.asixxheight,
max,
opts.axisystep || 10,