Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow custom set y-axis min to be 0 #18891

Merged
merged 2 commits into from
Jul 8, 2020
Merged

Conversation

TCL735
Copy link
Contributor

@TCL735 TCL735 commented Jul 8, 2020

Closes #18853

0 is a falsy value and was considered an unallowable custom set minimum value. We will allow 0 and guard against NaN and Infinity instead.

@TCL735 TCL735 requested review from a team, asalem1 and hoorayimhelping and removed request for a team July 8, 2020 21:51
@@ -72,24 +71,158 @@ describe('getRemainingRange', () => {
}
expect(getRemainingRange([], timeRange, [null, null])).toEqual(null)
})
it("should return the min y-axis if it's set", () => {
describe('should return a valid number from the stored domain as the min y-axis', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit here but can we please have a newline between each describe and it block?

@TCL735 TCL735 merged commit 30f9381 into master Jul 8, 2020
@TCL735 TCL735 deleted the fix_18853_y_axis_min_0 branch July 8, 2020 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

manual minimum y-axis value not rendering in dashboard
3 participants