created:7/7/2021
updated:7/7/2021
loc
4
comments
150%
passed
5
failed
5
coverage
100%
BarChart
grommet-controls
3.0.2- config
- source
() => (<BarChartdata={{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,},],}}/>)
package | imports | peer |
---|---|---|
react-chartjs-2 ^17.0.1 | Bar | * |
- config
- source
() => (<BarChartdata={rndDatasets(2, [{ yAxisID: 'y-axis-0' }, { yAxisID: 'y-axis-1' }])}options={{tooltips: {mode: 'index',intersect: true,},scales: {yAxes: [{type: 'linear',display: true,position: 'left',id: 'y-axis-0',},{type: 'linear',display: true,position: 'right',id: 'y-axis-1',gridLines: {drawOnChartArea: false,},},],},}}/>)