Skip to content

Commit 5b3154d

Browse files
authored
Merge pull request #978 from ercole-io/fix-bugs
Limit chart legend width
2 parents d6699d1 + aed84c1 commit 5b3154d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/components/cloud/RecommendationsCharts.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ export default {
292292
1
293293
)}%</b>`
294294
},
295+
markers: {
296+
size: 5,
297+
offsetX: -2,
298+
},
295299
},
296300
tooltip: {
297301
enabled: true,
@@ -310,12 +314,12 @@ export default {
310314
onDatasetHover: {
311315
highlightDataSeries: true,
312316
},
313-
fixed: {
314-
enabled: true,
315-
position: 'topRight',
316-
offsetX: 0,
317-
offsetY: 0,
318-
},
317+
// fixed: {
318+
// enabled: false,
319+
// position: 'topRight',
320+
// offsetX: 0,
321+
// offsetY: 0,
322+
// },
319323
},
320324
colors: [
321325
'rgba(255, 99, 132)',
@@ -375,7 +379,7 @@ export default {
375379
width: 350px !important;
376380
}
377381
.apexcharts-legend-text {
378-
width: 100%; /* Garante que o texto ocupe toda a largura disponível */
382+
width: 100%;
379383
white-space: nowrap;
380384
overflow: hidden;
381385
text-overflow: ellipsis;

0 commit comments

Comments
 (0)