Skip to content

Commit 23cbb3b

Browse files
committed
Fix - VueUi3dBar - Fix legend.bold config not applied #271
1 parent b3d26f0 commit 23cbb3b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/vue-ui-3d-bar.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ defineExpose({
11031103
style="overflow: visible; position: relative"
11041104
v-if="!loading"
11051105
>
1106-
<div v-if="FINAL_CONFIG.style.chart.legend.showDefault" :style="`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${FINAL_CONFIG.style.chart.legend.fontSize}px; text-align:left; line-height: ${FINAL_CONFIG.style.chart.legend.fontSize}px; color:${FINAL_CONFIG.style.chart.legend.color}`">
1106+
<div v-if="FINAL_CONFIG.style.chart.legend.showDefault" :style="`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${FINAL_CONFIG.style.chart.legend.fontSize}px; text-align:left; line-height: ${FINAL_CONFIG.style.chart.legend.fontSize}px; color:${FINAL_CONFIG.style.chart.legend.color}; font-weight:${FINAL_CONFIG.style.chart.legend.bold ? 'bold' : 'normal'}`">
11071107
{{ applyDataLabel(
11081108
FINAL_CONFIG.style.chart.dataLabel.formatter,
11091109
bar.value,
@@ -1155,6 +1155,7 @@ defineExpose({
11551155
:y="calcMarkerOffsetY(arc, 12, 12)"
11561156
:fill="FINAL_CONFIG.style.chart.legend.color"
11571157
:font-size="FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
1158+
:font-weight="FINAL_CONFIG.style.chart.legend.bold ? 'bold' : 'normal'"
11581159
>
11591160
{{ applyDataLabel(
11601161
FINAL_CONFIG.style.chart.dataLabel.formatter,
@@ -1174,6 +1175,7 @@ defineExpose({
11741175
:y="calcMarkerOffsetY(arc, 12, 12) + FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
11751176
:fill="FINAL_CONFIG.style.chart.legend.color"
11761177
:font-size="FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
1178+
:font-weight="FINAL_CONFIG.style.chart.legend.bold ? 'bold' : 'normal'"
11771179
>
11781180
{{ arc.name }}
11791181
</text>
@@ -1267,7 +1269,7 @@ defineExpose({
12671269
style="overflow: visible; position: relative"
12681270
v-if="!loading"
12691271
>
1270-
<div v-if="FINAL_CONFIG.style.chart.legend.showDefault" :style="`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${FINAL_CONFIG.style.chart.legend.fontSize}px; text-align:left; line-height: ${FINAL_CONFIG.style.chart.legend.fontSize}px; color:${FINAL_CONFIG.style.chart.legend.color}`">
1272+
<div v-if="FINAL_CONFIG.style.chart.legend.showDefault" :style="`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${FINAL_CONFIG.style.chart.legend.fontSize}px; text-align:left; line-height: ${FINAL_CONFIG.style.chart.legend.fontSize}px; color:${FINAL_CONFIG.style.chart.legend.color};font-weight:${FINAL_CONFIG.style.chart.legend.bold ? 'bold' : 'normal'}`">
12711273
{{ applyDataLabel(
12721274
FINAL_CONFIG.style.chart.dataLabel.formatter,
12731275
bar.value,
@@ -1319,6 +1321,7 @@ defineExpose({
13191321
:y="calcMarkerOffsetY(arc, 12, 12)"
13201322
:fill="FINAL_CONFIG.style.chart.legend.color"
13211323
:font-size="FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
1324+
:font-weight="FINAL_CONFIG.style.chart.legend.bold ? 'bold' : 'normal'"
13221325
>
13231326
{{ applyDataLabel(
13241327
FINAL_CONFIG.style.chart.dataLabel.formatter,
@@ -1338,6 +1341,7 @@ defineExpose({
13381341
:y="calcMarkerOffsetY(arc, 12, 12) + FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
13391342
:fill="FINAL_CONFIG.style.chart.legend.color"
13401343
:font-size="FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
1344+
:font-weight="FINAL_CONFIG.style.chart.legend.bold ? 'bold' : 'normal'"
13411345
>
13421346
{{ arc.name }}
13431347
</text>

0 commit comments

Comments
 (0)