Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#610·rickshaw

Gettings vis.selectAll is not a function when created from within Vue

Author: davidsielertCreated Feb 9, 2018Updated May 7, 2019

Nothing is really spectacular from my vue component code but I'm getting

typeerror
    at klass.render (rickshaw.js:3603)
    at Rickshaw.Graph.render (rickshaw.js:525)

with this simple creation code..

 this.graph = new Rickshaw.Graph({
        element: document.querySelector(`#VB-${this.id}`), //have to call id like this cause the uuid's can start with an integer
        renderer: 'area',
        stroke: true,
        series: [{
            data: this.data,
            color: this.color,
        }]
    });
    this.graph.render();

Source: shutterstock/rickshaw

View original on GitHubView discussion on GitHub