Skip to content

Commit fb769ba

Browse files
committed
Fix - VueUiHorizontalBar - Apply offsetX on bars from config #272
1 parent f8a5cd5 commit fb769ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/vue-ui-horizontal-bar.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,10 @@ watch(
659659
onMounted(() => updateDataLabelOverflow());
660660
661661
const drawingArea = computed(() => {
662-
const left = childColumnWidth.value + Math.abs(FINAL_CONFIG.value.style.chart.layout.bars.nameLabels.offsetX) + dataLabelOverflowLeft.value;
662+
const left = childColumnWidth.value + Math.abs(FINAL_CONFIG.value.style.chart.layout.bars.nameLabels.offsetX) + dataLabelOverflowLeft.value + FINAL_CONFIG.value.style.chart.layout.bars.offsetX;
663663
664664
const right = svg.value.width - svg.value.padding.right;
665-
666-
const availableWidth = Math.max(0,right - left - dataLabelOverflow.value - dataLabelOverflowLeft.value);
665+
const availableWidth = Math.max(0,right - left - dataLabelOverflow.value - dataLabelOverflowLeft.value - FINAL_CONFIG.value.style.chart.layout.bars.offsetX);
667666
668667
return {
669668
top: svg.value.padding.top,

0 commit comments

Comments
 (0)