separated tooltip text in plot

This commit is contained in:
Rushabh Mehta 2012-09-19 16:47:43 +05:30
parent 4573515899
commit 5b5bc97c50

View File

@ -176,5 +176,11 @@ wn.pages['stock-ledger'].onload = function(wrapper) {
max: dateutil.str_to_obj(this.to_date).getTime() }
}
},
get_tooltip_text: function(label, x, y) {
var d = new Date(x);
var date = dateutil.obj_to_user(d + " " + d.getHours() + ":" + d.getMinutes());
var value = fmt_money(y);
return value + " on " + date;
},
});
}