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
1c0fc3c9
Commit
1c0fc3c9
authored
Nov 12, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: small fix to legend sorting, #1030
parent
0b966b7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/app/panels/graph/legend.js
+5
-1
src/css/less/graph.less
+1
-0
No files found.
src/app/panels/graph/legend.js
View file @
1c0fc3c9
...
...
@@ -56,7 +56,11 @@ function (angular, app, _, kbn, $) {
function
sortLegend
(
e
)
{
var
el
=
$
(
e
.
currentTarget
);
var
stat
=
el
.
data
(
'stat'
);
if
(
stat
!==
panel
.
legend
.
sort
)
{
panel
.
legend
.
sortDesc
=
null
;
}
// if already sort ascending, disable sorting
if
(
panel
.
legend
.
sortDesc
===
false
)
{
panel
.
legend
.
sort
=
null
;
panel
.
legend
.
sortDesc
=
null
;
...
...
@@ -65,7 +69,7 @@ function (angular, app, _, kbn, $) {
}
panel
.
legend
.
sortDesc
=
!
panel
.
legend
.
sortDesc
;
panel
.
legend
.
sort
=
el
.
data
(
'stat'
)
;
panel
.
legend
.
sort
=
stat
;
render
();
}
...
...
src/css/less/graph.less
View file @
1c0fc3c9
...
...
@@ -114,6 +114,7 @@
font-weight: bold;
color: @blue;
font-size: 85%;
white-space: nowrap;
}
}
...
...
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