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
3a27b610
Commit
3a27b610
authored
Jan 12, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added all unit formats to new unit selector, #1331
parent
3dc30e4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
src/app/components/kbn.js
+18
-1
src/app/panels/graph/axisEditor.html
+3
-3
No files found.
src/app/components/kbn.js
View file @
3a27b610
...
...
@@ -492,6 +492,7 @@ function($, _, moment) {
submenu
:
[
{
text
:
'none'
,
value
:
'none'
},
{
text
:
'short'
,
value
:
'short'
},
{
text
:
'percent'
,
value
:
'percent'
},
]
},
{
...
...
@@ -500,16 +501,32 @@ function($, _, moment) {
{
text
:
'nanoseconds (ns)'
,
value
:
'ns'
},
{
text
:
'microseconds (µs)'
,
value
:
'µs'
},
{
text
:
'milliseconds (ms)'
,
value
:
'ms'
},
{
text
:
'seconds (s)'
,
value
:
's'
},
]
},
{
text
:
'data'
,
submenu
:
[
{
text
:
'bit
'
,
value
:
'bit
'
},
{
text
:
'bit
s'
,
value
:
'bits
'
},
{
text
:
'bytes'
,
value
:
'bytes'
},
{
text
:
'kilobytes'
,
value
:
'kbytes'
},
]
},
{
text
:
'data rate'
,
submenu
:
[
{
text
:
'bits/sec'
,
value
:
'bps'
},
{
text
:
'bytes/sec'
,
value
:
'Bps'
},
]
},
{
text
:
'energy'
,
submenu
:
[
{
text
:
'watt'
,
value
:
'watt'
},
{
text
:
'joule'
,
value
:
'joule'
},
{
text
:
'eV'
,
value
:
'ev'
},
]
},
];
};
...
...
src/app/panels/graph/axisEditor.html
View file @
3a27b610
...
...
@@ -10,7 +10,7 @@
<li
class=
"grafana-target-segment"
>
Unit
</li>
<li
class=
"dropdown"
style=
"width: 1
5
0px;"
<li
class=
"dropdown"
style=
"width: 1
4
0px;"
ng-model=
"panel.y_formats[0]"
dropdown-typeahead=
"unitFormats"
dropdown-typeahead-on-select=
"setUnitFormat(0, $subItem)"
>
...
...
@@ -47,7 +47,7 @@
<li
class=
"grafana-target-segment"
>
Unit
</li>
<li
class=
"dropdown"
style=
"width: 1
5
0px"
<li
class=
"dropdown"
style=
"width: 1
4
0px"
ng-model=
"panel.y_formats[1]"
dropdown-typeahead=
"unitFormats"
dropdown-typeahead-on-select=
"setUnitFormat(1, $subItem)"
>
...
...
@@ -104,7 +104,7 @@
<input
type=
"text"
class=
"input-small grafana-target-segment-input"
>
</li>
<li
class=
"grafana-target-segment"
>
<spectrum-picker
ng-model=
"panel.grid.threshold
1
Color"
ng-change=
"render()"
></spectrum-picker>
<spectrum-picker
ng-model=
"panel.grid.threshold
2
Color"
ng-change=
"render()"
></spectrum-picker>
</li>
<li
class=
"grafana-target-segment"
>
Line mode
...
...
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