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
f743288c
Commit
f743288c
authored
Oct 15, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: fix for legends on the side and graph dimensions adaptation
parent
61f6bd2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/app/components/settings.js
+1
-0
src/app/directives/grafanaGraph.js
+2
-0
No files found.
src/app/components/settings.js
View file @
f743288c
...
@@ -17,6 +17,7 @@ function (_, crypto) {
...
@@ -17,6 +17,7 @@ function (_, crypto) {
window_title_prefix
:
'Grafana - '
,
window_title_prefix
:
'Grafana - '
,
panels
:
{
panels
:
{
'graph'
:
{
path
:
'panels/graph'
},
'graph'
:
{
path
:
'panels/graph'
},
'stats'
:
{
path
:
'panels/stats'
},
'text'
:
{
path
:
'panels/text'
}
'text'
:
{
path
:
'panels/text'
}
},
},
plugins
:
{},
plugins
:
{},
...
...
src/app/directives/grafanaGraph.js
View file @
f743288c
...
@@ -207,6 +207,8 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
...
@@ -207,6 +207,8 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
}
}
if
(
shouldDelayDraw
(
panel
))
{
if
(
shouldDelayDraw
(
panel
))
{
// temp fix for legends on the side, need to render twice to get dimensions right
callPlot
();
setTimeout
(
callPlot
,
50
);
setTimeout
(
callPlot
,
50
);
legendSideLastValue
=
panel
.
legend
.
rightSide
;
legendSideLastValue
=
panel
.
legend
.
rightSide
;
}
}
...
...
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