Git Product home page Git Product logo

simple-data-vis's People

Contributors

vabarbosa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-data-vis's Issues

Incompatibility with latest D3

I'm doing this:

var data = [{"key":"0","value":0},{"key":"1","value":94145},{"key":"2","value":183772},{"key":"3","value":271977},{"key":"4","value":372067},{"key":"5","value":453020},{"key":"6","value":542799},{"key":"7","value":647370},{"key":"8","value":735884},{"key":"9","value":857047},{"key":"10","value":956616},{"key":"11","value":1036764},{"key":"12","value":1146800}];

SimpleDataVis(app.latestReport.traffic.hourbyhour)
      .attr('type', 'bar-chart')
      .render('#trend');

And get an error:

simpledatavis-barchart.js:25 Uncaught TypeError: Cannot read property 'linear' of undefined
    at Object.render (simpledatavis-barchart.js:25)
    at simpledatavis.js:229
    at clear (simpledatavis.js:155)
    at HTMLDivElement.<anonymous> (simpledatavis.js:228)
    at _t._l [as each] (d3.min.js:4)
    at renderer (simpledatavis.js:218)
    at _t.ll [as call] (d3.min.js:4)
    at Object.done (simpledatavis.js:348)
    at getData (simpledatavis.js:50)
    at datavis (simpledatavis.js:356)

I've seen this with other d3 example code that relied on older d3 instances.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.