Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

1001: Fix scrolling and auto domain issue #1038

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

zBritva
Copy link
Contributor

@zBritva zBritva commented Sep 2, 2022

PR to fix issues reported in #1001, #1002

@zBritva zBritva changed the title Fix scrolling and auto domain issue 1001: Fix scrolling and auto domain issue Sep 2, 2022
@zBritva zBritva marked this pull request as ready for review September 4, 2022 13:23
} else {
dataBinding.domainMax = options.domainMax;
if (dataBinding.autoDomainMin) {
dataBinding.domainMin = scale.domainMin;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are we using different variables for if we are scrolling or not? I have concerns about stale state if scrolling changes from on/off based on filtering.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

autoDomainMin alllows to sync min value of axis with value from new dataset, domainMin is the value itself.
There are correspond variables for max too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

domainMax and domainMin define the range of values for the axis (For example values from 5 to 15). allowScrolling allows shifting the range up/down (to shift from 5-15 to 25-35)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants