This Angular Line Chart example represents the crude steel production annual growth data with default line series in the chart. Data points are enhanced with marker and tooltip.
In this example, you can see how to render and configure the line type charts. Line type charts are used to represent time-dependent data, showing trends in data at equal intervals. You can use dashArray
, width
, fill
properties to customize the line. marker
and dataLabel
are used to represent individual data and its value.
Tooltips
are enabled in this example. To see a tooltip in action, hover over or tap on the chart.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use line series, we need to inject LineSeriesService
into the @NgModule.providers
section.
More information about the line series can be found in this documentation section.