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

scalars: commit chart changes in batch #4053

Merged
merged 11 commits into from
Aug 20, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class _TfLineChartDataLoader<ScalarMetadata>
_maybeRenderedInBadState: boolean = false;

onLoadFinish() {
this.commitChanges();
if (this.dataToLoad.length > 0 && this._resetDomainOnNextLoad) {
// (Don't unset _resetDomainOnNextLoad when we didn't
// load any runs: this has the effect that if all our
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export class TfScalarCard extends PolymerElement {
const name = this._getSeriesNameFromDatum(item);
scalarChart.setSeriesMetadata(name, item);
scalarChart.setSeriesData(name, formattedData);
scalarChart.commitChanges();
};

@property({type: Object})
Expand Down