Skip to content

Commit 1e3dd0b

Browse files
committed
Merge branch 'fix_rotating_currencies'
2 parents a46fd24 + e53e4b5 commit 1e3dd0b

File tree

1 file changed

+11
-0
lines changed
  • frontends/web/src/routes/account/summary

1 file changed

+11
-0
lines changed

frontends/web/src/routes/account/summary/chart.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ class Chart extends Component<Props, State> {
230230
lineColor: 'rgba(94, 148, 192, 1)',
231231
crosshairMarkerRadius: 6,
232232
});
233+
switch (this.state.display) {
234+
case 'week':
235+
this.displayWeek();
236+
break;
237+
case 'month':
238+
this.displayMonth();
239+
break;
240+
case 'year':
241+
this.displayYear();
242+
break;
243+
}
233244
this.lineSeries.setData(this.props.data.chartDataDaily as ChartData);
234245
this.setFormattedData(this.props.data.chartDataDaily as ChartData);
235246
this.chart.timeScale().subscribeVisibleLogicalRangeChange(this.calculateChange);

0 commit comments

Comments
 (0)