Skip to content

Instantly share code, notes, and snippets.

View tomemmerson's full-sized avatar

Tom Emmerson tomemmerson

View GitHub Profile
@tomemmerson
tomemmerson / main.md
Last active October 22, 2021 21:50
Nivo rounded top corners on @nivo/bar

So, you're looking to have rounded corners...

To do this I use a custom barComponent and make a minor change to the @nivo/bar source

This is what my barComponent looks like:

const CHART_HEIGHT = 300; // Set this to the height of your chart.

const CustomBarComponent = (props: any) => {
 const {