Skip to content

Commit 44e49ae

Browse files
committed
Fix - VueUiXy - Fix x start & end positions of trend line for bar datapoints
1 parent aeec2bd commit 44e49ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/vue-ui-xy.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@
359359
</defs>
360360
<line
361361
v-if="serie.plots.length > 1"
362-
:x1="calcLinearProgression(serie.plots).x1"
363-
:x2="calcLinearProgression(serie.plots).x2"
362+
:x1="calcLinearProgression(serie.plots).x1 + calcRectWidth()"
363+
:x2="calcLinearProgression(serie.plots).x2 + calcRectWidth()"
364364
:y1="forceValidValue(calcLinearProgression(serie.plots).y1)"
365365
:y2="forceValidValue(calcLinearProgression(serie.plots).y2)"
366366
:stroke-width="1"
@@ -372,7 +372,7 @@
372372
v-if="serie.plots.length > 1"
373373
:data-cy="`xy-bar-progression-label-${i}`"
374374
text-anchor="middle"
375-
:x="calcLinearProgression(serie.plots).x2"
375+
:x="calcLinearProgression(serie.plots).x2 + calcRectWidth()"
376376
:y="calcLinearProgression(serie.plots).y2 - 6"
377377
:font-size="fontSizes.plotLabels"
378378
:fill="serie.color"

0 commit comments

Comments
 (0)