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
6861dc13
Commit
6861dc13
authored
Nov 07, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: fix for legend show/hide toggle, broken by recent legend rewrite
parent
e530e4d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/app/components/timeSeries.js
+2
-0
src/app/panels/graph/axisEditor.html
+1
-1
No files found.
src/app/components/timeSeries.js
View file @
6861dc13
...
@@ -70,6 +70,7 @@ function (_, kbn) {
...
@@ -70,6 +70,7 @@ function (_, kbn) {
this
.
stats
.
min
=
Number
.
MAX_VALUE
;
this
.
stats
.
min
=
Number
.
MAX_VALUE
;
this
.
stats
.
avg
=
null
;
this
.
stats
.
avg
=
null
;
this
.
stats
.
current
=
null
;
this
.
stats
.
current
=
null
;
this
.
allIsNull
=
true
;
var
ignoreNulls
=
fillStyle
===
'connected'
;
var
ignoreNulls
=
fillStyle
===
'connected'
;
var
nullAsZero
=
fillStyle
===
'null as zero'
;
var
nullAsZero
=
fillStyle
===
'null as zero'
;
...
@@ -89,6 +90,7 @@ function (_, kbn) {
...
@@ -89,6 +90,7 @@ function (_, kbn) {
if
(
_
.
isNumber
(
currentValue
))
{
if
(
_
.
isNumber
(
currentValue
))
{
this
.
stats
.
total
+=
currentValue
;
this
.
stats
.
total
+=
currentValue
;
this
.
allIsNull
=
false
;
}
}
if
(
currentValue
>
this
.
stats
.
max
)
{
if
(
currentValue
>
this
.
stats
.
max
)
{
...
...
src/app/panels/graph/axisEditor.html
View file @
6861dc13
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<div
class=
"editor-row"
>
<div
class=
"editor-row"
>
<div
class=
"section"
>
<div
class=
"section"
>
<h5>
Legend styles
</h5>
<h5>
Legend styles
</h5>
<editor-opt-bool
text=
"Show legend"
model=
"panel.legend.show"
change=
"
render()
"
></editor-opt-bool>
<editor-opt-bool
text=
"Show legend"
model=
"panel.legend.show"
change=
"
get_data();
"
></editor-opt-bool>
<editor-opt-bool
text=
"Include values"
model=
"panel.legend.values"
change=
"render()"
></editor-opt-bool>
<editor-opt-bool
text=
"Include values"
model=
"panel.legend.values"
change=
"render()"
></editor-opt-bool>
<editor-opt-bool
text=
"Align as table"
model=
"panel.legend.alignAsTable"
change=
"render()"
></editor-opt-bool>
<editor-opt-bool
text=
"Align as table"
model=
"panel.legend.alignAsTable"
change=
"render()"
></editor-opt-bool>
<editor-opt-bool
text=
"Right side"
model=
"panel.legend.rightSide"
change=
"render()"
></editor-opt-bool>
<editor-opt-bool
text=
"Right side"
model=
"panel.legend.rightSide"
change=
"render()"
></editor-opt-bool>
...
...
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