Skip to content

Commit b5ebb3f

Browse files
committed
VueUi3dBar minor styling improvements
1 parent c1dbd27 commit b5ebb3f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.0.77",
4+
"version": "2.0.78",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ function createFill(startProportion, proportion) {
159159
topY: H - relativeB - P - height * proportion,
160160
height: height * proportion
161161
},
162+
apexBottom: {y: H - relativeB, x: W / 2},
163+
apexTop: {y: H - relativeB - height * proportion, x: W / 2},
162164
right: `M${W / 2},${H - relativeB} ${W / 2},${H - relativeB - height * proportion} ${W - R},${H - relativeB - P - height * proportion} ${W - R},${H - relativeB - P}Z`,
163165
left: `M${W / 2},${H - relativeB} ${W / 2},${H - relativeB - height * proportion} ${L}, ${H - relativeB - P - height * proportion} ${L},${H - relativeB - P}Z`,
164166
liningTop: `M${L},${H - relativeB - P - height * proportion} ${W / 2},${H - relativeB - height * proportion} ${W - R},${H - relativeB - P - height * proportion}`,
@@ -481,7 +483,7 @@ defineExpose({
481483
<path :d="bar.fill.top" :fill="`url(#grad_top_${bar.id})`" @mouseenter="useTooltip(bar)" @mouseout="selectedSerie = null"/>
482484
<path :d="bar.fill.liningTop" stroke="#FFFFFF" stroke-width="0.5" stroke-linecap="round" fill="none" @mouseenter="useTooltip(bar)" @mouseout="selectedSerie = null" />
483485

484-
<path :d="`M ${svg.width / 2},${(svg.perspective * 2) + svg.top} ${svg.width / 2},${svg.height - svg.bottom}`" :stroke="`#FFFFFF`" stroke-width="0.5" stroke-linecap="round"/>
486+
<path :d="`M ${bar.fill.apexTop.x},${bar.fill.apexTop.y} ${bar.fill.apexBottom.x},${bar.fill.apexBottom.y}`" :stroke="`#FFFFFF`" stroke-width="0.5" stroke-linecap="round"/>
485487
</g>
486488
<g v-for="(bar, i) in stack">
487489
<path v-if="i !== stack.length - 1" :d="bar.fill.liningTopShade" :stroke="barConfig.style.chart.bar.shadeColor" stroke-width="0.5" stroke-linecap="round" fill="none" style="pointer-events: none;" />

0 commit comments

Comments
 (0)