From ad7aaf1f619cd4f48079eca2e3b1cccd1b024ce4 Mon Sep 17 00:00:00 2001 From: emi Date: Sun, 5 Jan 2020 23:16:07 -0300 Subject: [PATCH] Fix bars --- src/vue-d3-barchart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vue-d3-barchart.vue b/src/vue-d3-barchart.vue index 49a0647..68b0fe1 100644 --- a/src/vue-d3-barchart.vue +++ b/src/vue-d3-barchart.vue @@ -246,8 +246,8 @@ export default { }, bars () { let { scaleX, scaleY, percentX, percentY, colors } = this - return this.mappedData.map((d, i) => { - let { x, y } = d + return this.mappedData.map((m, i) => { + let { x, y, d } = m return { d, xv: x,