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
bd8899b3
Commit
bd8899b3
authored
Jan 11, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(graph): fixed table legend min-height, fixes #7221
parent
edae622d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
4 deletions
+88
-4
public/app/plugins/app/testdata/dashboards/graph_last_1h.json
+86
-2
public/app/plugins/app/testdata/plugin.json
+1
-1
public/app/plugins/panel/graph/legend.js
+1
-1
No files found.
public/app/plugins/app/testdata/dashboards/graph_last_1h.json
View file @
bd8899b3
...
...
@@ -8,7 +8,7 @@
"hideControls"
:
false
,
"links"
:
[],
"refresh"
:
false
,
"revision"
:
7
,
"revision"
:
8
,
"rows"
:
[
{
"collapse"
:
false
,
...
...
@@ -860,6 +860,90 @@
"datasource"
:
"Grafana TestData"
,
"decimals"
:
3
,
"fill"
:
1
,
"id"
:
20
,
"legend"
:
{
"alignAsTable"
:
true
,
"avg"
:
true
,
"current"
:
true
,
"max"
:
true
,
"min"
:
true
,
"show"
:
true
,
"total"
:
true
,
"values"
:
true
},
"lines"
:
true
,
"linewidth"
:
1
,
"links"
:
[],
"nullPointMode"
:
"null"
,
"percentage"
:
false
,
"pointradius"
:
5
,
"points"
:
false
,
"renderer"
:
"flot"
,
"seriesOverrides"
:
[],
"span"
:
12
,
"stack"
:
false
,
"steppedLine"
:
false
,
"targets"
:
[
{
"refId"
:
"A"
,
"scenarioId"
:
"csv_metric_values"
,
"stringInput"
:
"1,20,90,30,5,0"
,
"target"
:
""
}
],
"thresholds"
:
[],
"timeFrom"
:
null
,
"timeShift"
:
null
,
"title"
:
"Legend Table Single Series Should Take Minium Height"
,
"tooltip"
:
{
"shared"
:
true
,
"sort"
:
0
,
"value_type"
:
"individual"
},
"type"
:
"graph"
,
"xaxis"
:
{
"mode"
:
"time"
,
"name"
:
null
,
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
},
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
}
]
}
],
"repeat"
:
null
,
"repeatIteration"
:
null
,
"repeatRowId"
:
null
,
"showTitle"
:
false
,
"title"
:
"Dashboard Row"
,
"titleSize"
:
"h6"
},
{
"collapse"
:
false
,
"height"
:
250
,
"panels"
:
[
{
"aliasColors"
:
{},
"bars"
:
false
,
"datasource"
:
"Grafana TestData"
,
"decimals"
:
3
,
"fill"
:
1
,
"id"
:
16
,
"legend"
:
{
"alignAsTable"
:
true
,
...
...
@@ -1360,5 +1444,5 @@
},
"timezone"
:
"browser"
,
"title"
:
"TestData - Graph Panel Last 1h"
,
"version"
:
6
"version"
:
2
}
public/app/plugins/app/testdata/plugin.json
View file @
bd8899b3
...
...
@@ -9,7 +9,7 @@
"name"
:
"Grafana Project"
,
"url"
:
"http://grafana.org"
},
"version"
:
"1.0.1
6
"
,
"version"
:
"1.0.1
7
"
,
"updated"
:
"2016-09-26"
},
...
...
public/app/plugins/panel/graph/legend.js
View file @
bd8899b3
...
...
@@ -198,7 +198,7 @@ function (angular, _, $) {
var
topPadding
=
6
;
var
tbodyElem
=
$
(
'<tbody></tbody>'
);
tbodyElem
.
css
(
"height"
,
maxHeight
-
topPadding
);
tbodyElem
.
css
(
"
max-
height"
,
maxHeight
-
topPadding
);
tbodyElem
.
append
(
tableHeaderElem
);
tbodyElem
.
append
(
seriesElements
);
$container
.
append
(
tbodyElem
);
...
...
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