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
62af7797
Commit
62af7797
authored
Jun 02, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legend Current value did not display when value was zero, Fixes #460
parent
384687e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
CHANGELOG.md
+1
-0
src/app/panels/graphite/timeSeries.js
+5
-5
tasks/default_task.js
+1
-1
No files found.
CHANGELOG.md
View file @
62af7797
...
...
@@ -11,6 +11,7 @@ vNext
Options are now reloaded correctly and there are no multiple renders/refresh inbetween (#447),
After an option is changed and a nested template param is also reloaded, if the current value
exists after the options are reloaded the current selected value is kept (Closes #447, Closes #412)
-
Legend Current value did not display when value was zero, Fixes #460
# 1.5.4 (2014-05-13)
### New features and improvements
...
...
src/app/panels/graphite/timeSeries.js
View file @
62af7797
...
...
@@ -60,11 +60,11 @@ function (_, kbn) {
this
.
info
.
current
=
result
[
result
.
length
-
1
][
1
];
var
formater
=
kbn
.
getFormatFunction
(
yFormats
[
this
.
yaxis
-
1
],
2
);
this
.
info
.
avg
=
this
.
info
.
avg
?
formater
(
this
.
info
.
avg
)
:
null
;
this
.
info
.
current
=
this
.
info
.
current
?
formater
(
this
.
info
.
current
)
:
null
;
this
.
info
.
min
=
this
.
info
.
min
?
formater
(
this
.
info
.
min
)
:
null
;
this
.
info
.
max
=
this
.
info
.
max
?
formater
(
this
.
info
.
max
)
:
null
;
this
.
info
.
total
=
this
.
info
.
total
?
formater
(
this
.
info
.
total
)
:
null
;
this
.
info
.
avg
=
this
.
info
.
avg
!=
null
?
formater
(
this
.
info
.
avg
)
:
null
;
this
.
info
.
current
=
this
.
info
.
current
!=
null
?
formater
(
this
.
info
.
current
)
:
null
;
this
.
info
.
min
=
this
.
info
.
min
!=
null
?
formater
(
this
.
info
.
min
)
:
null
;
this
.
info
.
max
=
this
.
info
.
max
!=
null
?
formater
(
this
.
info
.
max
)
:
null
;
this
.
info
.
total
=
this
.
info
.
total
!=
null
?
formater
(
this
.
info
.
total
)
:
null
;
}
return
result
;
...
...
tasks/default_task.js
View file @
62af7797
// Lint and build CSS
module
.
exports
=
function
(
grunt
)
{
grunt
.
registerTask
(
'default'
,
[
'jshint:source'
,
'jshint:tests'
,
'less:src'
,
'concat'
]);
grunt
.
registerTask
(
'default'
,
[
'jshint:source'
,
'jshint:tests'
,
'less:src'
,
'concat
:css
'
]);
grunt
.
registerTask
(
'test'
,
[
'default'
,
'karma:test'
]);
};
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