react-heat-map icon indicating copy to clipboard operation
react-heat-map copied to clipboard

Start date as "Today"

Open shivam-880 opened this issue 10 months ago • 3 comments

image

How do we start the heatmap from the start date as today?

shivam-880 avatar Apr 01 '24 16:04 shivam-880

https://github.com/uiwjs/react-heat-map/blob/29f6a14cbc600efa0827946c5033c76f29c7d25b/core/src/SVG.tsx#L16

@iamsmkr You can try using the startDate props

jaywcjlove avatar Apr 02 '24 03:04 jaywcjlove

I already have tried that. It just doesn't show up as the last <rect> unfortunately. Seems like the contribution must always show up as a perfect rectangle. Which means startDate can't be the last/first date.

shivam-880 avatar Apr 02 '24 08:04 shivam-880

@iamsmkr I understand your idea. At the moment, I have more interesting things to do. If you submit a PR yourself, I will merge it. Thank you.

jaywcjlove avatar Apr 02 '24 11:04 jaywcjlove