question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TimeRange emptyColor

See original GitHub issue

Describe/explain the bug

According to the documentation, the TimeRange (and ResponsiveTimeRange) should have the emptyColor property, just like the Calendar component. You can see it here:

An array of colors to be used in conjunction with domain to compute days’ color. It applies to days having a value defined, otherwise, emptyColor will be used.

To Reproduce https://codesandbox.io/s/frosty-swartz-07f8z?file=/src/App.js

Expected behavior I expect the emptyColor property to exist and have an effect. In my case, the time range will feel very empty if I don’t have those “empty” boxes. 😦

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser Chrome
  • Version 90.0.4430.93

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
plouccommented, Oct 9, 2021

@321ckatz123, I just published 0.74.0, which includes this.

0reactions
321ckatz123commented, Oct 4, 2021

@wyze this does not appear to have been pushed to npm. Can you please push this PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - TimeRange emptyColor - - Bountysource
An array of colors to be used in conjunction with domain to compute days' color. It applies to days having a value defined,...
Read more >
Time Range chart | nivo
The TimeRange chart is similar to the Calendar chart, but it allows you to specify dates less than a year. chartcodedataroll the dice....
Read more >
TimeRange | Nulogy Design System
Time ranges allow users to easily enter a range of dates. If the end date is before the start date, by default an...
Read more >
Object — Modo SDK 14.2v0 documentation - Foundry Learn
Empty Color Python user class. Alpha ()¶. Alpha is optional. ... TimeRange(integer type) ... If the useAlt command is empty, “color.useAlt ?
Read more >
NPM Package Versions - nivo/pie - Socket.dev
migrate stream package to TypeScript (e6f4c70b). timerange: add from, to, and emptyColor props (#1722) (d49a7903); website: improve data log when clicking on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found