Commit d259f142 by Torkel Ödegaard

Initial work on #9 (millisecond y axis formater)

parent 3b6bf80e
......@@ -505,5 +505,14 @@ function($, _, moment) {
return (size.toFixed(decimals) + ext);
};
kbn.msFormat = function(size) {
if (size < 500) {
return size.toFixed(0) + " ms";
}
else {
return (size / 1000).toFixed(0) + " s";
}
};
return kbn;
});
\ No newline at end of file
......@@ -61,8 +61,7 @@ function (angular, $) {
$scope.kbnJqUiDraggableOptions = {
revert: 'invalid',
helper: function(event) {
console.log(event);
helper: function() {
return $('<div style="width:200px;height:100px;background: rgba(100,100,100,0.50);"/>');
},
placeholder: 'keep'
......
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