Skip to Main Content
Mastering Angular Components - Second Edition
book

Mastering Angular Components - Second Edition

by Gion Kunz
July 2018
Intermediate to advanced content levelIntermediate to advanced
402 pages
9h 35m
English
Packt Publishing
Content preview from Mastering Angular Components - Second Edition

Creating an open tasks chart

Let's take a look at the line chart that we're going to create:

Open tasks visualized with our tasks chart component, using Chartist's step interpolation

We will utilize the refactored rasterize function of the previous topic, and will use the new accumulate mode to track open task counts over time.

Let's use the Angular CLI tool to create our new tasks chart component:

ng generate component --spec false -ve none -cd onpush projects-dashboard/tasks-chart

Let's edit the component class, on the path src/app/projects-dashboard/tasks-chart/tasks-chart.component.ts, and change its content to the following:

import { ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Angular, 2nd Edition

Learning Angular, 2nd Edition

Brad Dayley, Brendan Dayley, Caleb Dayley
Essential Angular

Essential Angular

Victor Savkin, Jeff Cross
Pro Angular 6

Pro Angular 6

Adam Freeman

Publisher Resources

ISBN: 9781788293532Supplemental Content