Repository supporting the 'D3.js and Vue.js' blog post on Medium. Link here
npm install
npm run serve
npm run build
Example of implementing D3 in Vuejs
Home Page: https://andre347.github.io/d3-vue-example/
License: GNU General Public License v3.0
Repository supporting the 'D3.js and Vue.js' blog post on Medium. Link here
npm install
npm run serve
npm run build
Thanks for the d3js vue chart. Is there an easy way to add text to the circles?
To fix change:
.entries(this.tweetData)
to
.entries(this.tweetData.tweets)
Test issue
Testing action
Absolutely love this tutorial, thanks for connecting the dots on D3's data structures and Vue's reactivity!
One thing I noticed while working through was that the nest
function has been deprecated in favor of group
and rollup
. I was able to arrive at the same result with some changes in the Chart component:
// replace this:
const nestedTweets = d3
.nest()
.key(d => d.user)
.entries(this.tweetData);
// with this:
const nestedTweets = d3.group(this.tweetData, d => d.user)
// replace this:
const packableTweets = { id: 'All Tweets', values: nestedTweets }
return d3
.hierarchy(packableTweets, d => d.values)
.sum(d =>
d.retweets ? d.retweets.length + d.favorites.length + 1 : 1
)
// with this:
return d3
.hierarchy(nestedTweets)
.sum(d =>
d.retweets ? d.retweets.length + d.favorites.length + 1 : 1
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.