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

time series: move the fit button to header #4856

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

stephanwlee
Copy link
Contributor

The scalar line chart in the time series has had the feature where we
automatically fit domain to the new data when it is unaltered. However,
because it was hidden inside the overflow menu and because there was no
clear visual indication when the chart will fit to the domain or not, it
was largely confusing. With the recent changes to make it more salient
with title and disabled on the button, we improved in this area but
was still not too obvious.

To fix this problem, we are now moving the control out of the overflow
menu into the chart header so there is a clearer visual difference
between domains overridden vs. not.

image

The scalar line chart in the time series has had the feature where we
automatically fit domain to the new data when it is unaltered. However,
because it was hidden inside the overflow menu and because there was no
clear visual indication when the chart will fit to the domain or not, it
was largely confusing. With the recent changes to make it more salient
with `title` and `disabled` on the button, we improved in this area but
was still not too obvious.

To fix this problem, we are now moving the control out of the overflow
menu into the chart header so there is a clearer visual difference
between domains overridden vs. not.
@google-cla google-cla bot added the cla: yes label Apr 10, 2021
@stephanwlee stephanwlee requested a review from psybuzz April 10, 2021 01:22
Copy link
Contributor

@psybuzz psybuzz left a comment

Choose a reason for hiding this comment

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

Thanks, a nice UX change indeed!

FIT_TO_DOMAIN: By.css('[aria-label="Fit line chart domains to data"]'),
};

it('resets domain when user clicks on reset button', fakeAsync(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just checking, since this test case doesn't do any flush()ing, can fakeAsync be dropped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used in the createComponent or one of these utils (I tried and it threw an error).

@stephanwlee stephanwlee merged commit e742a53 into tensorflow:master Apr 13, 2021
@stephanwlee stephanwlee deleted the better branch April 13, 2021 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants