8000 fixed display of node legend with large entries · rchakode/kube-opex-analytics@a54b948 · GitHub
[go: up one dir, main page]

Skip to content

Commit a54b948

Browse files
committed
fixed display of node legend with large entries
1 parent 9010919 commit a54b948

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

css/frontend.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ legend {
3333
color: rgba(0, 0, 0, 0.65);
3434
}
3535

36+
/*
3637
.britechart-legend {
38+
max-height: 400px;
3739
overflow-y: auto;
3840
}
41+
*/
3942

4043
.britecharts-tooltip {
4144
width: 64rem !important; /* Adjust the value as needed */

js/frontend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ define(['jquery', 'bootstrap', 'bootswatch', 'd3Selection', 'stackedAreaChart',
128128
d3Selection.select('.' + targetDivContainer + ' .britechart-legend').remove();
129129
legendChart
130130
.width(containerWidth * 0.8)
131-
.height(400)
131+
.height(dataset.length * 12)
132132
.marginRatio(2)
133133
.markerSize(10)
134134
.numberFormat('.2s');

0 commit comments

Comments
 (0)
0