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
882a477c
Commit
882a477c
authored
Nov 12, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: increase decimal precision in tooltip and legend values when unit scaling is applied, #1043
parent
ebcf2c3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/app/directives/grafanaGraph.js
+1
-1
src/app/panels/graph/legend.js
+5
-0
No files found.
src/app/directives/grafanaGraph.js
View file @
882a477c
...
...
@@ -106,7 +106,7 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
var
series
=
data
[
i
];
var
axis
=
yaxis
[
series
.
yaxis
-
1
];
var
formater
=
kbn
.
valueFormats
[
scope
.
panel
.
y_formats
[
series
.
yaxis
-
1
]];
series
.
updateLegendValues
(
formater
,
axis
.
tickDecimals
,
axis
.
scaledDecimals
);
series
.
updateLegendValues
(
formater
,
axis
.
tickDecimals
,
axis
.
scaledDecimals
+
2
);
if
(
!
scope
.
$$phase
)
{
scope
.
$digest
();
}
}
}
...
...
src/app/panels/graph/legend.js
View file @
882a477c
...
...
@@ -53,11 +53,16 @@ function (angular, app, _, kbn, $) {
scope
.
toggleSeries
(
seriesInfo
,
e
);
}
function
sortLegend
(
e
)
{
}
function
render
()
{
if
(
firstRender
)
{
elem
.
append
(
$container
);
$container
.
on
(
'click'
,
'.graph-legend-icon'
,
openColorSelector
);
$container
.
on
(
'click'
,
'.graph-legend-alias'
,
toggleSeries
);
$container
.
on
(
'click'
,
'th'
,
sortLegend
);
firstRender
=
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