/ Charts

Simply yet configurable charts build with D3

Simply yet configurable charts build with D3

vue-d3-charts

Simply yet configurable charts build with D3.

vue-d3-chartsv

Install

npm i vue-d3-charts --save

Usage

Import:

import {D3BarChart} from 'vue-d3-charts'

Template:

<D3BarChart :config="config" :datum="data"></D3BarChart>

Configuration and data:

// data
data = [{
  name: "Lorem",
  total: 30
},{
  name: "Ipsum",
  total: 21
},{
  name: "Dolor",
  total: 20
}]

// Configuration
config = {
  key: "name",
  value: "total",
  color: "steelblue",
}

GitHub