score:1

Accepted answer

the problem is with extra datasets params xaxisid and yaxisid.

it seems they're not set correctly, so when vue-charts tries getting references to those dom elements, it gets undefined, thus the error.

you should either remove those params, or add those elements (via options or manually)

here is a working version of the app

ps: also, if you need to get a random number from the interval [-100, 100], you should use math.round(math.random() * 200) - 100. in your version, it always returns either 1, or 0 (because math.random takes no parameters and always returns a value between 1 and 0)


Related Query

More Query from same tag