vue-d3-rotating-piechart

0.1.1 • Public • Published

vue-d3-rotating-piechart

A D3 pie chart component for vue. Enhanced user experience via rotation and tumbling.

Demo

Installation

npm i vue-d3-rotating-piechart

Basic usage

import RotatingPieChart from "vue-d3-rotating-piechart";
<RotatingPieChart :data="data" /> 

Data format

data = [{label: <string>, value: <number>}, ...]

Properties

prop type required default value
data Array(Object) false (but really, should have some data) [{label: foo, value: 17] ...more dummy data
rotating boolean false false
tumbling function false false

rotating: spin the pie chart in the plane of the page for an exciting user experience

tumbling: rotate the pie chart in all three dimensions for the most enhanced user experience

Roadmap

maybe make the size configurable, fill the parent container or something. alternative colors? data accessors? sky's the limit really

Readme

Keywords

none

Package Sidebar

Install

npm i vue-d3-rotating-piechart

Weekly Downloads

1

Version

0.1.1

License

none

Unpacked Size

1.31 MB

Total Files

11

Last publish

Collaborators

  • nickolas1