Skip to content

Commit 3bc85bf

Browse files
committed
Fix config
1 parent 8f7ca11 commit 3bc85bf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/vue-ui-sparkbar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ function selectDatapoint(datapoint, index) {
282282
textAlign: ['left', 'right'].includes(FINAL_CONFIG.style.labels.name.position) ? 'left' : ['top', 'top-left'].includes(FINAL_CONFIG.style.labels.name.position) ? 'left' : FINAL_CONFIG.style.labels.name.position === 'top-center' ? 'center' : 'right'
283283
}"
284284
>
285-
{{ FINAL_CONFIG.style.labels.name.position }}
286285
<span :data-cy="`sparkbar-name-${i}`">{{ bar.name }}</span>
287286
<span
288287
:data-cy="`sparkbar-value-${i}`"

src/useConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ export function useConfig() {
18231823
labels: {
18241824
fontSize: FONT._16,
18251825
name: {
1826-
position: POSITION.TOP,
1826+
position: 'top-left',
18271827
width: '100%',
18281828
color: COLOR_BLACK,
18291829
bold: false

0 commit comments

Comments
 (0)