A pack of extensions for grommet 2
created:7/7/2021
updated:7/7/2021
loc
4
comments
125%
passed
2
failed
2
coverage
100%

PieChart

Component

import { PieChart } from 'grommet-controls';

Main

() => (
<PieChart
data={{
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
{
label: 'Dataset 1',
data: [-93, 45, 35, -33, 8, 88, -62],
},
],
}}
options={{
legend: {
display: false,
},
themedData: true,
}}
/>
)

Commits

Date
Author
Commit Message
8/27/2019

atanasster

avatar of atanasster
initial commit 2.x alpha
1 commits

External dependencies

package
imports
peer
Pie
*

Internal dependencies

file
imports
"../withChartTheme"
withChartTheme

Stories

Themed Data

() => (
<PieChart
data={rndDatasets(1)}
options={{
themedData: true,
}}
/>
)