Data Visualization Widgets PolarChart

A chart widget displaying data in a polar coordinate system.

Included in: dx.viz.js, dx.viz-web.js, dx.all.js
Module: viz/polar_chart
PolarChart interactive configuration
Copy code
$("#polarchart").dxPolarChart({
});

The dxPolarChart widget is used to display polar charts in web applications. These charts are displayed in a polar coordinate system. In this system, each point on a plane is determined by a distance from a fixed point (the point's value) and an angle from a fixed direction (the point's argument). To understand how a chart is displayed in a polar coordinate system, imagine how it would be displayed in a rectangular coordinate system and then round off the argument axis in your imagination.

DevExtreme HTML5 Charts DataVisualization DevExtreme HTML5 Charts PolarChart RadarChart DataVisualization

You can create a widget using one of the following approaches.

  • jQuery
    Use the dxPolarChart jQuery plug-in.

    HTML
    <div id="chartContainer"></div>
    JavaScript
    $("#chartContainer").dxPolarChart({
        dataSource: dataSource,
        series: [
            {valueField: "day", name: "Day" }, 
            { valueField: "night", name: "Night" }
        ],
        commonSeriesSettings: {     
            argumentField: "month",
            type: "scatter"
        }
    });
  • Knockout
    Add a div element and apply the dxPolarChart binding to this element.

    HTML
    <div data-bind="dxPolarChart: {
        dataSource: dataSource,
        series: [
            {valueField: 'day', name: 'Day' }, 
            { valueField: 'night', name: 'Night' }
        ],
        commonSeriesSettings: {     
            argumentField: 'month',
            type: 'scatter'
        }
    }"></div>
  • AngularJS
    Add a div element and apply the dx-polar-chart directive to this element.

    HTML
    <div dx-polar-chart="{
        dataSource: dataSource,
        series: [
            {valueField: 'day', name: 'Day' }, 
            { valueField: 'night', name: 'Night' }
        ],
        commonSeriesSettings: {     
            argumentField: 'month',
            type: 'scatter'
        }
    }"></div>

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the Installation article.

The PolarChart widget contains multiple visual elements (axes, titles, labels, strips, grid, etc.). To learn more about the widget's visual elements, refer to the PolarChart Elements help article. To learn how to provide data for the PolarChart widget, refer to the Data Binding article.

Choose one of the following supported series types.

You can read an overview of these series types in the PolarChart Series Types article.

View Demo Watch Video

See Also

Configuration

An object defining configuration options for the PolarChart widget.

Methods

This section describes the methods that can be used in code to manipulate the PolarChart widget.

Use the dxPolarChart registered method to access the PolarChart widget as demonstrated in the code below.

JavaScript
var chart = $("#chartContainer").dxPolarChart("instance");

Events

This section describes events fired by this widget.

Series Types

This section lists objects that define options used to configure series of specific types.

Chart Elements

This section lists the methods and fields of chart elements.