• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a vue.js plugin for D3

vue-d3

A Vue.js plugin for D3.

Installation

npm:

npm install --save vue-d3

Vue:

var Vue = require('vue')
var VueD3 = require('vue-d3')
Vue.use(VueD3)

HTML (Browserify):

<body>
  ...
  <!-- Bottom of body -->
  <script src="/path/to/vue.js"</script>
  <script src="/node_modules/vue-d3/src/vue-d3.js'"></script>
</body>

Usage

D3 is now available through this.$d3

this.$d3.selectAll('p').style('color', 'white');