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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.11
0.1.01

Package Sidebar

Install

npm i vue-d3-rotating-piechart

Weekly Downloads

2

Version

0.1.1

License

none

Unpacked Size

1.31 MB

Total Files

11

Last publish

Collaborators

  • nickolas1