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.

domainMin and domainMax not always respected

See original GitHub issue

domainMin and domainMax are not always respected, despite domain behaving correctly.

Example 1 Example 2 Example 3

In Example 1, we can see neither being respected. Modifying them (such as in Example 3) we can see that they are sometimes respected. It’s not clear under what circumstances they are or are not respected.

However, adding in the domain property with the very same values immediately addresses the issue (see Example 2) I would not expect domainMin and domainMax to behave any differently from the use of domain. While domain is a reasonable hack around the problem, there are times where we need to specify only one or the other side of the range and domain requires both a min AND max.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
maclockardcommented, Nov 12, 2021

sure!

1reaction
domoritzcommented, Nov 11, 2021

I think the issue here is nicing. If you set nice: false, it looks like your example is correct. Open the Chart in the Vega Editor

We could set nice to false if domainMin and/or domainMax are set.

Read more comments on GitHub >

github_iconTop Results From Across the Web

D3 Domain and Scale Bug - Stack Overflow
When I go to add Dynamic Data by pulling in a JSON page my domain and range are no longer respected and my...
Read more >
Calc III: Find absolute max/min on a Domain - YouTube
Calc III: Find absolute max /min on a Domain · Key moments. View all · Key moments · Description · Key moments. View...
Read more >
color scale failing to respect if there are more than two values ...
However, this doesn't seem to be the case. It appears that the min/max values of the domain are used to set the min/max...
Read more >
Domain: FAQs
Some nTLD domains have their own max length of registration time. Top of page. How much is your premium domain? Premium Domains range...
Read more >
Domain and Range of a Function - Statistics How To
Square (quadratic) functions have a domain of all real numbers. The range depends on the sign of the leading coefficient: y ≥ min...
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