simple-data-vis's People
simple-data-vis's Issues
type vs data-vis-type
The wiki says "data-vis-type" but the sample code says "type".
I'm pretty sure it should be "data-vis-type" ?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.