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

DoughnutChart

Component

import { DoughnutChart } from 'grommet-controls';

Main

() => (
<DoughnutChart
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/30/2020

atanasster

avatar of atanasster
update eslint and add component-controls
8/27/2019

atanasster

avatar of atanasster
initial commit 2.x alpha
2 commits

External dependencies

package
imports
peer
Doughnut
*

Internal dependencies

file
imports
"../withChartTheme"
withChartTheme

Stories

Animation

() => (
<DoughnutChart
data={rndDatasets(1)}
options={{
themedData: true,
animation: {
animateScale: true,
animateRotate: true,
},
}}
/>
)