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
01bd6620
Commit
01bd6620
authored
Nov 11, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: legend fix for bug when running optimized build, Fixes #1045
parent
9e26d3e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
src/app/panels/graph/legend.popover.html
+1
-2
src/app/panels/singlestat/module.js
+1
-1
src/app/services/popoverSrv.js
+3
-2
tasks/options/ngtemplates.js
+1
-2
No files found.
src/app/panels/graph/legend.popover.html
View file @
01bd6620
...
...
@@ -20,8 +20,7 @@
class=
"pointer"
ng-class=
"{'icon-circle-blank': color === series.color,'icon-circle': color !== series.color}"
ng-style=
"{color:color}"
ng-click=
"changeSeriesColor(series, color);dismiss();"
>
</i>
ng-click=
"changeSeriesColor(series, color);dismiss();"
>
</i>
</div>
</div>
src/app/panels/singlestat/module.js
View file @
01bd6620
...
...
@@ -158,7 +158,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
var
result
=
{};
result
.
decimals
=
Math
.
max
(
0
,
dec
);
result
.
scaledDecimals
=
result
.
decimals
-
Math
.
floor
(
Math
.
log
(
size
)
/
Math
.
LN1
0
)
+
2
;
result
.
scaledDecimals
=
result
.
decimals
-
Math
.
floor
(
Math
.
log
(
size
)
/
Math
.
LN1
1
)
+
2
;
return
result
;
};
...
...
src/app/services/popoverSrv.js
View file @
01bd6620
define
([
'angular'
,
'lodash'
,
],
function
(
angular
)
{
function
(
angular
,
_
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.services'
);
...
...
@@ -21,7 +22,7 @@ function (angular) {
}
this
.
getTemplate
(
options
.
templateUrl
).
then
(
function
(
result
)
{
var
template
=
result
.
data
;
var
template
=
_
.
isString
(
result
)
?
result
:
result
.
data
;
options
.
element
.
popover
({
content
:
template
,
...
...
tasks/options/ngtemplates.js
View file @
01bd6620
...
...
@@ -15,4 +15,4 @@ module.exports = function(config) {
}
}
};
};
\ No newline at end of file
};
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