g1eb / reactjs-calendar-heatmap

React component for d3.js calendar heatmap graph
https://rawgit.com/g1eb/reactjs-calendar-heatmap/master/
MIT License
151 stars 35 forks source link

how to use just the 'day overview' #4

Closed lookdeceline closed 4 years ago

lookdeceline commented 4 years ago

great charts! is there any way i can use just the 'day overview' ? thanks :)

g1eb commented 4 years ago

Hi there, thanks! You can select the overview that is shown by default setting it as a prop on the component overview={'day'}, see this function for options/ reference: https://github.com/g1eb/reactjs-calendar-heatmap/blob/master/src/calendar-heatmap.component.js#L124

Alternatively, if the only overview you need is the daily one, you could fork the repo and remove all the click handlers that are attached to the other overview, should be fairly straightforward to be honest, let me know if you need help with that.

g1eb commented 4 years ago

Closing due to inactivity, feel free to reopen if still relevant