diff --git a/tensorboard/components/vz_line_chart2/vz-line-chart2.ts b/tensorboard/components/vz_line_chart2/vz-line-chart2.ts index 20dfa1499a..4e62cd3603 100644 --- a/tensorboard/components/vz_line_chart2/vz-line-chart2.ts +++ b/tensorboard/components/vz_line_chart2/vz-line-chart2.ts @@ -254,7 +254,8 @@ Polymer({ observers: [ '_makeChart(xComponentsCreationMethod, xType, yValueAccessor, yScaleType, tooltipColumns, colorScale, isAttached)', - '_reloadFromCache(_chart)', + // Refer to the cache and, if available, load data of a new visible series. + '_reloadFromCache(_chart, _visibleSeriesCache)', '_smoothingChanged(smoothingEnabled, smoothingWeight, _chart)', '_tooltipSortingMethodChanged(tooltipSortingMethod, _chart)', '_outliersChanged(ignoreYOutliers, _chart)', @@ -318,10 +319,6 @@ Polymer({ setVisibleSeries: function(names) { if (_.isEqual(this._visibleSeriesCache, names)) return; this._visibleSeriesCache = names; - if (this._chart) { - this._chart.setVisibleSeries(names); - this.redraw(); - } }, /**