mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
add vertical grid
This commit is contained in:
parent
14530d0733
commit
ab20c6352f
@ -571,6 +571,15 @@ Licensed under the BSD-2-Clause License.
|
||||
_results.push(void 0);
|
||||
}
|
||||
}
|
||||
if (this.options.grid) {
|
||||
var _data = this.data;
|
||||
for (_i = 1, _len = _data.length; _i < _len; _i++) {
|
||||
lineX = _data[_i];
|
||||
x = lineX._x;
|
||||
|
||||
_results.push(this.drawGridLine("M" + x + "," + this.top + "V" + (this.top + this.height)));
|
||||
}
|
||||
}
|
||||
return _results;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user