vue2-d3

1.0.0 • Public • Published

vue2-d3

A Vue.js plugin for D3.js.

Installation

npm:

npm install --save vue2-d3

Vue:

import Vue from 'vue'
import VueD3 from 'vue2-d3'
Vue.use(VueD3)

HTML (Browserify):

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

Usage

D3 is now available through this.$d3

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

Package Sidebar

Install

npm i vue2-d3

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

1.83 kB

Total Files

3

Last publish

Collaborators

  • congolese