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

scalar: fix tiny chart #2605

Merged
merged 3 commits into from Sep 3, 2019
Merged

scalar: fix tiny chart #2605

merged 3 commits into from Sep 3, 2019

Conversation

stephanwlee
Copy link
Contributor

@stephanwlee stephanwlee commented Aug 28, 2019

This change updates active prop to a template of a
tf-category-paginated-view when the category pane is collapsed/expanded.
It also updates the active when a component is no longer mounted onto
the DOM.

The change does not contain any redraw logic but it magically works
because the DataLoaderBehavior, when active changes to active, fetches
data point for ones that are not in cache and then triggers rerender.
This flow of logic is indirect and thus can be made to be more direct
but that can cause too many "redraw" call which can be quite expensive
(scales poorly with # of runs).

Related to #2595.

This change updates `active` prop to a template of a
tf-category-paginated-view when the category pane is collapsed/expanded.
It also updates the `active` when a component is no longer mounted onto
the DOM.

The change does not contain any redraw logic but it magically works
because the DataLoaderBehavior, when active changes to active, fetches
data point for ones that are not in cache and then triggers rerender.
This flow of logic is indirect and thus can be made to be more direct
but that can cause too many "redraw" call which can be quite expensive
(scales poorly with # of runs).
@@ -156,7 +156,7 @@ <h3>No scalar data was found.</h3>
>
<template>
<tf-scalar-card
active="[[active]"
active="[[active]]"
Copy link
Contributor

Choose a reason for hiding this comment

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

…was this just like active="true" always?

@stephanwlee stephanwlee merged commit adbfb9d into tensorflow:master Sep 3, 2019
@stephanwlee stephanwlee deleted the tiny branch September 3, 2019 19:06
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.

None yet

3 participants