Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit b1426de

Browse files
committed
Update README.md
1 parent f03c5e6 commit b1426de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ to each chart method usage. Most of the chart attributes are available with the
3030
original function.
3131

3232
```javascript
33-
import { PieChart } from 'react-dc-js'
33+
import { PieChart } from 'react-dc-js';
34+
import crossfilter from 'crossfilter2';
3435

3536
function YourChart() {
3637
const cx = crossfilter(data)
3738
const dimension = cx.dimension(d => d.propName)
3839

39-
return <BarChart dimension={dimension} group={dimension.group()} />
40+
return <PieChart dimension={dimension} group={dimension.group()} />
4041
}
4142
```
4243

0 commit comments

Comments
 (0)