0.3.5 • Published 9 months ago

@igloo-ui/pie-chart v0.3.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

PieChart

A pie chart is a circular graph used to display proportions or percentages. It includes a label and percentage in the middle, representing the category or component being depicted and its proportion of the whole.

Installation

To install @igloo-ui/pie-chart in your project, you will need to run the following command using npm:

npm install @igloo-ui/pie-chart

If you prefer Yarn, use the following command instead:

yarn add @igloo-ui/pie-chart

Usage

Then to use the component in your code just import it!

import PieChart from '@igloo-ui/pie-chart';
import tokens from '@igloo-ui/tokens/dist/base10/tokens.json';

const mockData = [
  { id: 'positive', percentage: 25, color: tokens.seaweed400 },
  { id: 'negative', percentage: 10, color: tokens.coral400 },
  { id: 'skipped', percentage: 40, color: tokens.creamsicle100 },
  { id: 'unanswered', percentage: 25, color: tokens.grey300 },
];

<PieChart data={mockData} label="Poll Completion" size="large" rate={35} />;
0.3.5

9 months ago

0.3.4

11 months ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.0

2 years ago