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
ac1ca639
Commit
ac1ca639
authored
Jul 10, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2327 from languitar/hide-in-legend-override
Series override option to hide legend entries
parents
83b67c06
244e682c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
public/app/components/timeSeries.js
+2
-0
public/app/panels/graph/legend.js
+4
-0
public/app/panels/graph/seriesOverridesCtrl.js
+1
-0
No files found.
public/app/components/timeSeries.js
View file @
ac1ca639
...
...
@@ -13,6 +13,7 @@ function (_, kbn) {
this
.
color
=
opts
.
color
;
this
.
valueFormater
=
kbn
.
valueFormats
.
none
;
this
.
stats
=
{};
this
.
legend
=
true
;
}
function
matchSeriesOverride
(
aliasOrRegex
,
seriesAlias
)
{
...
...
@@ -55,6 +56,7 @@ function (_, kbn) {
if
(
override
.
fillBelowTo
!==
void
0
)
{
this
.
fillBelowTo
=
override
.
fillBelowTo
;
}
if
(
override
.
color
!==
void
0
)
{
this
.
color
=
override
.
color
;
}
if
(
override
.
transform
!==
void
0
)
{
this
.
transform
=
override
.
transform
;
}
if
(
override
.
legend
!==
void
0
)
{
this
.
legend
=
override
.
legend
;
}
if
(
override
.
yaxis
!==
void
0
)
{
this
.
yaxis
=
override
.
yaxis
;
...
...
public/app/panels/graph/legend.js
View file @
ac1ca639
...
...
@@ -130,6 +130,10 @@ function (angular, app, _, kbn, $) {
if
(
panel
.
legend
.
hideEmpty
&&
series
.
allIsNull
)
{
continue
;
}
// ignore series excluded via override
if
(
!
series
.
legend
)
{
continue
;
}
var
html
=
'<div class="graph-legend-series'
;
if
(
series
.
yaxis
===
2
)
{
html
+=
' pull-right'
;
}
...
...
public/app/panels/graph/seriesOverridesCtrl.js
View file @
ac1ca639
...
...
@@ -104,6 +104,7 @@ define([
$scope
.
addOverrideOption
(
'Y-axis'
,
'yaxis'
,
[
1
,
2
]);
$scope
.
addOverrideOption
(
'Z-index'
,
'zindex'
,
[
-
1
,
-
2
,
-
3
,
0
,
1
,
2
,
3
]);
$scope
.
addOverrideOption
(
'Transform'
,
'transform'
,
[
'negative-Y'
]);
$scope
.
addOverrideOption
(
'Legend'
,
'legend'
,
[
true
,
false
]);
$scope
.
updateCurrentOverrides
();
});
...
...
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