Commit 5af9a6b5 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

axis.js: use posBarLabel function

Defined below, avoid duplicating code
parent 887557b5
......@@ -341,7 +341,7 @@ Axis.prototype = {
var i=1
for (var e in tab){
if (i%step == 0 ){
var pos = (i-0.5)/length ;
var pos = this.posBarLabel(i, length);
if (this.reverse) pos = 1 - pos;
this.labels.push(this.label("line", pos, e));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment