mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Initial work on #9 (millisecond y axis formater)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user