O'Reilly logo

Mastering Angular Components by Gion Kunz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required