Skip to content

Commit 873ec18

Browse files
committed
Improvement - VueUiQuickChart - Improved yLabels formatting
1 parent fef6ded commit 873ec18

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/vue-ui-quick-chart.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,12 @@ defineExpose({
948948
:font-size="quickConfig.xyLabelsYFontSize"
949949
:fill="quickConfig.color"
950950
>
951-
{{ label.value }}
951+
{{ dataLabel({
952+
p: quickConfig.valuePrefix,
953+
v: label.value,
954+
s: quickConfig.valueSuffix,
955+
r: quickConfig.dataLabelRoundingValue
956+
}) }}
952957
</text>
953958
</template>
954959
</g>
@@ -1138,7 +1143,12 @@ defineExpose({
11381143
:font-size="quickConfig.xyLabelsYFontSize"
11391144
:fill="quickConfig.color"
11401145
>
1141-
{{ label.value }}
1146+
{{ dataLabel({
1147+
p: quickConfig.valuePrefix,
1148+
v: label.value,
1149+
s: quickConfig.valueSuffix,
1150+
r: quickConfig.dataLabelRoundingValue
1151+
}) }}
11421152
</text>
11431153
</template>
11441154
</g>

0 commit comments

Comments
 (0)