DeviaVir/vue-bar

Cannot set property 'boundary' of undefined

Xayer opened this issue · 4 comments

Xayer commented

Hi!
I'm using the vue-bars module on a codepen project.
It appeared to work, however, I've encountered this error when trying to render a graph:

parameters:

<bars
       :data="numbers">
    </bars>

numbers is a data object with the following structure:

numbers: [
        { key: 1 },
        { key: 2 },
        { key: 3 },
      ]

link to codepen project

@Xayer whoops, that's a bug indeed. To go around this, I'd advise to pass an array with numbers instead of an array with objects for now.

Like:

numbers: [0, 1, 2, 3]
Xayer commented

@DeviaVir Thanks for replying. Unfortunately it doesn't seem like turning it into an array helped for me, as I'm still encountering the same issue 🙁

@Xayer is the live demo also not working for you? https://jsfiddle.net/nyh18bLq/91/

Xayer commented

@DeviaVir it's working just fine. So I guess it's on my project 😞