Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
74602b10
Unverified
Commit
74602b10
authored
Mar 12, 2018
by
Carl Bergquist
Committed by
GitHub
Mar 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11183 from jtyr/jtyr-timeticks
Adding Timeticks unit
parents
4362a73d
6bfed903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
public/app/core/utils/kbn.ts
+5
-0
No files found.
public/app/core/utils/kbn.ts
View file @
74602b10
...
@@ -783,6 +783,10 @@ kbn.valueFormats.dtdurations = function(size, decimals) {
...
@@ -783,6 +783,10 @@ kbn.valueFormats.dtdurations = function(size, decimals) {
return kbn.toDuration(size, decimals, '
second
');
return kbn.toDuration(size, decimals, '
second
');
};
};
kbn.valueFormats.timeticks = function(size, decimals, scaledDecimals) {
return kbn.valueFormats.s(size / 100, decimals, scaledDecimals);
};
kbn.valueFormats.dateTimeAsIso = function(epoch) {
kbn.valueFormats.dateTimeAsIso = function(epoch) {
var time = moment(epoch);
var time = moment(epoch);
...
@@ -854,6 +858,7 @@ kbn.getUnitFormats = function() {
...
@@ -854,6 +858,7 @@ kbn.getUnitFormats = function() {
{ text: '
days
(
d
)
', value: '
d
' },
{ text: '
days
(
d
)
', value: '
d
' },
{ text: '
duration
(
ms
)
', value: '
dtdurationms
' },
{ text: '
duration
(
ms
)
', value: '
dtdurationms
' },
{ text: '
duration
(
s
)
', value: '
dtdurations
' },
{ text: '
duration
(
s
)
', value: '
dtdurations
' },
{ text: '
Timeticks
(
s
/
100
)
', value: '
timeticks
' },
],
],
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment