message: feat(live-chart): replaced setInterval() with RxJS timer since it allows setting initial delay.
diff: import { Component, OnDestroy } from '@angular/core';
  import { ChartType } from 'ng-chartist';
  +import { Subscription, timer } from 'rxjs';
  export interface LiveData {
  labels: string[];
  @@ -22,7 +23,7 @@ export class LiveChartComponent implements OnDestroy {
  public data: LiveData;
  public type: ChartType;
  - private interval: any;
  + private timerSubscription: Subscription;
  constructor() {
  this.data = {
  @@ -31,14 +32,17 @@ export class LiveChartComponent implements OnDestroy {
  };
  this.type = 'Bar';
  - this.interval = setInterval(() => {
  - const time: Date = new Date();
  - const formattedTime: string = [
  + this.timerSubscription = timer(0, 2500).subscribe(() => this.updateData());
  + }
  +
  + updateData() {
  + const time: Date = new Date(),
  + formattedTime: string = [
  time.getHours(),
  time.getMinutes(),
  time.getSeconds()
  - ].join(':');
  - const random: number = getRandomInt(1, 40),
  + ].join(':'),
  + random = getRandomInt(1, 40),
  data = this.data.series[0],
  labels = this.data.labels;
  @@ -49,11 +53,10 @@ export class LiveChartComponent implements OnDestroy {
  this.data.labels = labels.slice(-9);
  this.data.series[0] = data.slice(-9);
  - this.data = Object.assign({}, this.data);
  - }, 2500);
  + this.data = { ...this.data };
  }
  public ngOnDestroy(): void {
  - clearInterval(this.interval);
  + this.timerSubscription.unsubscribe();
  }
  }
  