d3-pie-chart
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

d3-pie-chart

d3 library for rendering pie chart

Usage

This library has no d3 dependencies, instead you have to install d3 dependencies directly via npm or include it in your HTML. The class assumes that d3 dependencies will be injected into the class via the constructor, i.e.:

import PieChart from 'd3-pie-chart'
import * as d3 from 'd3'

const chart = new PieChart(d3, data)
chart.render(document.querySelector("#chart"))

Readme

Keywords

Package Sidebar

Install

npm i d3-pie-chart

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

14.5 kB

Total Files

11

Last publish

Collaborators

  • aprimadi