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
0e1c12e6
Commit
0e1c12e6
authored
Nov 19, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3279 from mtanda/override_null
override null point mode
parents
2e9303cb
37b125ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
+5
-1
public/app/core/time_series.ts
+3
-0
public/app/panels/graph/graph.js
+1
-1
public/app/panels/graph/seriesOverridesCtrl.js
+1
-0
No files found.
public/app/core/time_series.ts
View file @
0e1c12e6
...
...
@@ -37,6 +37,7 @@ class TimeSeries {
yaxis
:
any
;
zindex
:
any
;
stack
:
any
;
nullPointMode
:
any
;
fillBelowTo
:
any
;
transform
:
any
;
...
...
@@ -57,6 +58,7 @@ class TimeSeries {
this
.
bars
=
{};
this
.
yaxis
=
1
;
this
.
zindex
=
0
;
this
.
nullPointMode
=
null
;
delete
this
.
stack
;
for
(
var
i
=
0
;
i
<
overrides
.
length
;
i
++
)
{
...
...
@@ -70,6 +72,7 @@ class TimeSeries {
if
(
override
.
fill
!==
void
0
)
{
this
.
lines
.
fill
=
translateFillOption
(
override
.
fill
);
}
if
(
override
.
stack
!==
void
0
)
{
this
.
stack
=
override
.
stack
;
}
if
(
override
.
linewidth
!==
void
0
)
{
this
.
lines
.
lineWidth
=
override
.
linewidth
;
}
if
(
override
.
nullPointMode
!==
void
0
)
{
this
.
nullPointMode
=
override
.
nullPointMode
;
}
if
(
override
.
pointradius
!==
void
0
)
{
this
.
points
.
radius
=
override
.
pointradius
;
}
if
(
override
.
steppedLine
!==
void
0
)
{
this
.
lines
.
steps
=
override
.
steppedLine
;
}
if
(
override
.
zindex
!==
void
0
)
{
this
.
zindex
=
override
.
zindex
;
}
...
...
public/app/panels/graph/graph.js
View file @
0e1c12e6
...
...
@@ -227,7 +227,7 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
var
series
=
data
[
i
];
series
.
applySeriesOverrides
(
panel
.
seriesOverrides
);
series
.
data
=
series
.
getFlotPairs
(
panel
.
nullPointMode
,
panel
.
y_formats
);
series
.
data
=
series
.
getFlotPairs
(
series
.
nullPointMode
||
panel
.
nullPointMode
,
panel
.
y_formats
);
// if hidden remove points and disable stack
if
(
scope
.
hiddenSeries
[
series
.
alias
])
{
...
...
public/app/panels/graph/seriesOverridesCtrl.js
View file @
0e1c12e6
...
...
@@ -95,6 +95,7 @@ define([
$scope
.
addOverrideOption
(
'Lines'
,
'lines'
,
[
true
,
false
]);
$scope
.
addOverrideOption
(
'Line fill'
,
'fill'
,
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]);
$scope
.
addOverrideOption
(
'Line width'
,
'linewidth'
,
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]);
$scope
.
addOverrideOption
(
'Null point mode'
,
'nullPointMode'
,
[
'connected'
,
'null'
,
'null as zero'
]);
$scope
.
addOverrideOption
(
'Fill below to'
,
'fillBelowTo'
,
$scope
.
getSeriesNames
());
$scope
.
addOverrideOption
(
'Staircase line'
,
'steppedLine'
,
[
true
,
false
]);
$scope
.
addOverrideOption
(
'Points'
,
'points'
,
[
true
,
false
]);
...
...
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