Ability to hide months in the Calendar #1831
TimWillebrands
started this conversation in
Ideas
Replies: 2 comments
-
|
So for good measure we want support to show the calendar like this: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I know this is several years old, but I think I found a solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
For a client we're using the calendar component to show the effectiveness of machines over time which looks like this:

This works great, however we've received complaints about the 'empty months' at the end of the calendar. I've looked into adding a feature to hide months and it doesn't seem too difficult, we'd love to contribute this feature to nivo.
So I wanted to ask whether you'd be interested in such a feature, and if you could you give input on the correct implementation?
I was thinking something along the lines of either:
<Calendar {...allTheOtherProps} hideMonths={[10, 11]} />or
<Calendar {...allTheOtherProps} trimEmptyMonths="end" />type of trimEmptyMonths could be something like trimEmptyMonths?: "start" | "end" | "both"
Another possibility could be to add borders and such to months in the TimeRange component but that seems a tad more difficult.
I'd love to hear your thoughts
Beta Was this translation helpful? Give feedback.
All reactions