Polar Line Chart

The Ignite UI for Web Components polar area chart belongs to a group of polar charts and is rendered using a collection of straight lines connecting data points. The IgcPolarLineSeriesComponent uses the same concepts of data plotting as the IgcScatterLineSeriesComponent but wraps data points around a circle rather than stretching them along a horizontal line. Like with other series types, multiple IgcPolarLineSeriesComponent can be plotted in the same data chart and they can be overlaid on each other to show differences and similarities between data sets.

Demo

Required Axes

The Web Components data chart component provides various types of axes but only the following types of axes can be used with IgcPolarLineSeriesComponent.

Required Data

The IgcPolarLineSeriesComponent has the following data requirements:

In polar coordinate systems, the location of data points is determined by an angle (angular coordinate) from a fixed direction and distance (radial coordinate) from a fixed point (analogous to the origin of a Cartesian coordinate) which is called "the pole". The lines that start from the pole and point outwards are gridlines of the angular axis (IgcNumericAngleAxisComponent) and the concentric rings that surround the pole are gridlines of the radius axis (IgcNumericRadiusAxisComponent)

You can use the SamplePolarData as data source which meets above data requirements.

public dataSource: any[] = SamplePolarData.create();

Required Modules

Creation of the IgcPolarLineSeriesComponent requires the following modules:

import { IgcDataChartComponent } from 'igniteui-webcomponents-charts';
import { IgcDataChartCoreModule } from 'igniteui-webcomponents-charts';
import { IgcDataChartPolarCoreModule } from 'igniteui-webcomponents-charts';
import { IgcDataChartPolarModule } from 'igniteui-webcomponents-charts';
import { IgcDataChartInteractivityModule } from 'igniteui-webcomponents-charts';
import { ModuleManager } from 'igniteui-webcomponents-core';

ModuleManager.register(
    IgcDataChartCoreModule,
    IgcDataChartPolarCoreModule,
    IgcDataChartPolarModule,
    IgcDataChartInteractivityModule
);

Code Example

This code demonstrates how to create an instance of the Ignite UI for Web Components data chart with IgcPolarLineSeriesComponent and bind it to a data source.

<igc-data-chart id="chart"
    width="100%"
    height="100%"
    is-horizontal-zoom-enabled="true"
    is-vertical-zoom-enabled="true">
    <igc-numeric-angle-axis name="angleAxis"
        start-angle-offset="-90" interval="30"
        minimum-value="0"
        maximum-value="360">
    </igc-numeric-angle-axis>
    <igc-numeric-radius-axis name="radiusAxis"
        inner-radius-extent-scale="0.1"
        radius-extent-scale="0.9"
        minimum-value="0"
        maximum-value="100"
        interval="25">
    </igc-numeric-radius-axis>
    <igc-polar-line-series
        name="series1"
        angle-member-path="Direction"
        radius-member-path="WindSpeed"
        radius-axis-name="radiusAxis"
        angle-axis-name="angleAxis"
        title="Wind Speed">
    </igc-polar-line-series>
</igc-data-chart>
let chart = document.getElementById("chart") as IgcDataChartComponent;
chart.dataSource = SamplePolarData.create();

Additional Resources