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%

HorizontalBarChart

Component

import { HorizontalBarChart } from 'grommet-controls';

Main

() => (
<HorizontalBarChart
data={{
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
{
label: 'Dataset 1',
data: [-40, 92, -44, -75, -65, -89, 78],
borderWidth: 1,
},
{
label: 'Dataset 2',
data: [-78, -21, -43, 70, 11, -91, -63],
borderWidth: 1,
},
],
}}
/>
)

Commits

Date
Author
Commit Message
8/27/2019

atanasster

avatar of atanasster
initial commit 2.x alpha
1 commits

External dependencies

package
imports
peer
HorizontalBar
*

Internal dependencies

file
imports
"../withChartTheme"
withChartTheme

Stories

Title

() => (
<HorizontalBarChart
data={rndDatasets(1)}
options={{
themedData: true,
legend: { position: 'right' },
title: {
display: true,
text: 'Title of chart',
},
}}
/>
)