mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(graph): fixed table legend min-height, fixes #7221
This commit is contained in:
parent
edae622d8f
commit
bd8899b37d
@ -8,7 +8,7 @@
|
|||||||
"hideControls": false,
|
"hideControls": false,
|
||||||
"links": [],
|
"links": [],
|
||||||
"refresh": false,
|
"refresh": false,
|
||||||
"revision": 7,
|
"revision": 8,
|
||||||
"rows": [
|
"rows": [
|
||||||
{
|
{
|
||||||
"collapse": false,
|
"collapse": false,
|
||||||
@ -850,6 +850,90 @@
|
|||||||
"title": "Dashboard Row",
|
"title": "Dashboard Row",
|
||||||
"titleSize": "h6"
|
"titleSize": "h6"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"collapse": false,
|
||||||
|
"height": 250,
|
||||||
|
"panels": [
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"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,
|
"collapse": false,
|
||||||
"height": 250,
|
"height": 250,
|
||||||
@ -1360,5 +1444,5 @@
|
|||||||
},
|
},
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"title": "TestData - Graph Panel Last 1h",
|
"title": "TestData - Graph Panel Last 1h",
|
||||||
"version": 6
|
"version": 2
|
||||||
}
|
}
|
||||||
|
2
public/app/plugins/app/testdata/plugin.json
vendored
2
public/app/plugins/app/testdata/plugin.json
vendored
@ -9,7 +9,7 @@
|
|||||||
"name": "Grafana Project",
|
"name": "Grafana Project",
|
||||||
"url": "http://grafana.org"
|
"url": "http://grafana.org"
|
||||||
},
|
},
|
||||||
"version": "1.0.16",
|
"version": "1.0.17",
|
||||||
"updated": "2016-09-26"
|
"updated": "2016-09-26"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ function (angular, _, $) {
|
|||||||
|
|
||||||
var topPadding = 6;
|
var topPadding = 6;
|
||||||
var tbodyElem = $('<tbody></tbody>');
|
var tbodyElem = $('<tbody></tbody>');
|
||||||
tbodyElem.css("height", maxHeight - topPadding);
|
tbodyElem.css("max-height", maxHeight - topPadding);
|
||||||
tbodyElem.append(tableHeaderElem);
|
tbodyElem.append(tableHeaderElem);
|
||||||
tbodyElem.append(seriesElements);
|
tbodyElem.append(seriesElements);
|
||||||
$container.append(tbodyElem);
|
$container.append(tbodyElem);
|
||||||
|
Loading…
Reference in New Issue
Block a user