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
ed9e336c
Commit
ed9e336c
authored
Mar 24, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #225, grid min not sent to graphite png renderer when set to 0
parent
94fea502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/app/directives/grafanaGraph.js
+3
-3
No files found.
src/app/directives/grafanaGraph.js
View file @
ed9e336c
...
@@ -318,7 +318,7 @@ function (angular, $, kbn, moment, _) {
...
@@ -318,7 +318,7 @@ function (angular, $, kbn, moment, _) {
}
}
});
});
function
render_panel_as_graphite_png
(
url
)
{
function
render_panel_as_graphite_png
(
url
)
{
url
+=
'&width='
+
elem
.
width
();
url
+=
'&width='
+
elem
.
width
();
url
+=
'&height='
+
elem
.
css
(
'height'
).
replace
(
'px'
,
''
);
url
+=
'&height='
+
elem
.
css
(
'height'
).
replace
(
'px'
,
''
);
url
+=
'&bgcolor=1f1f1f'
;
// @grayDarker & @kibanaPanelBackground
url
+=
'&bgcolor=1f1f1f'
;
// @grayDarker & @kibanaPanelBackground
...
@@ -327,8 +327,8 @@ function (angular, $, kbn, moment, _) {
...
@@ -327,8 +327,8 @@ function (angular, $, kbn, moment, _) {
url
+=
scope
.
panel
.
fill
!==
0
?
(
'&areaAlpha='
+
(
scope
.
panel
.
fill
/
10
).
toFixed
(
1
))
:
''
;
url
+=
scope
.
panel
.
fill
!==
0
?
(
'&areaAlpha='
+
(
scope
.
panel
.
fill
/
10
).
toFixed
(
1
))
:
''
;
url
+=
scope
.
panel
.
linewidth
!==
0
?
'&lineWidth='
+
scope
.
panel
.
linewidth
:
''
;
url
+=
scope
.
panel
.
linewidth
!==
0
?
'&lineWidth='
+
scope
.
panel
.
linewidth
:
''
;
url
+=
scope
.
panel
.
legend
?
''
:
'&hideLegend=true'
;
url
+=
scope
.
panel
.
legend
?
''
:
'&hideLegend=true'
;
url
+=
scope
.
panel
.
grid
.
min
?
'&yMin='
+
scope
.
panel
.
grid
.
min
:
''
;
url
+=
scope
.
panel
.
grid
.
min
!==
null
?
'&yMin='
+
scope
.
panel
.
grid
.
min
:
''
;
url
+=
scope
.
panel
.
grid
.
max
?
'&yMax='
+
scope
.
panel
.
grid
.
max
:
''
;
url
+=
scope
.
panel
.
grid
.
max
!==
null
?
'&yMax='
+
scope
.
panel
.
grid
.
max
:
''
;
url
+=
scope
.
panel
[
'x-axis'
]
?
''
:
'&hideAxes=true'
;
url
+=
scope
.
panel
[
'x-axis'
]
?
''
:
'&hideAxes=true'
;
url
+=
scope
.
panel
[
'y-axis'
]
?
''
:
'&hideYAxis=true'
;
url
+=
scope
.
panel
[
'y-axis'
]
?
''
:
'&hideYAxis=true'
;
...
...
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