Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the border radius of days? #210

Open
ZiedChekir opened this issue Dec 19, 2024 · 2 comments
Open

How to change the border radius of days? #210

ZiedChekir opened this issue Dec 19, 2024 · 2 comments

Comments

@ZiedChekir
Copy link

ZiedChekir commented Dec 19, 2024

How to change the border radius of the rectangles representing days?

@ZiedChekir ZiedChekir changed the title Border raduis How to change the border radius of days? Dec 20, 2024
@felixmosh
Copy link

Pass a additionalRectAttrs which will return {strokeWidth: '1px', stroke: '#000'}

@ChaparroAlberto
Copy link

Brother, this way I was able to solve it 💪:

This is the example of the documentation

<CalendarHeatmap
  values={[
    { date: '2016-01-01', count: 1 },
    { date: '2016-01-03', count: 4 },
    { date: '2016-01-06', count: 2 },
    // ...and so on
  ]}

// Just add this, the RX and RY in tooltipDataAttrs //
  tooltipDataAttrs={() => {
    return { rx: "4", ry: "4" };
  }}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants