Making the tasks chart interactive

Currently, we hardcoded the timeframe of our open task chart to be 144 frames, each 10 minutes long, making a total of 24 hours displayed to the user. However, maybe our users will want to change this view.

In this topic, we will create a simple input control using our toggle component, which will allow our users to change the timeframe settings of the chart.

We will provide the following views as options to choose from:

  • Day: This view will rasterize into 144 frames, each consisting of 10 minutes, which makes a total of 24 hours
  • Week: This view will rasterize into 168 frames, each consisting of one hour, which makes a total of seven days
  • Year: This view will rasterize into 360 frames, each representing ...

Get Mastering Angular Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.