Data Visualization Widgets PieChart

A circular chart widget for HTML JS applications.

Type: Object

The dxPieChart widget is used to embed circular charts (such as pie or doughnut charts) into HTML JS applications.

The dxPieChart widget, like any other ChartJS widget, can be created using one of the three possible approaches: jQuery, Knockout or AngularJS. The following code demonstrates how to create the dxPieChart widget within the "pieChartContainer" container using the jQuery approach.

<script>
  $(function () {
    $("#pieChartContainer").dxPieChart({
      //Options of the configuration object are specified here
    });
  });
</script>

To configure the dxPieChart widget, pass a configuration object as the constructor's parameter. The properties of this object represent the widget's configuration options. To specify the options, set the configuration object's properties to the required values. Refer to the Configuration section to find the options that are required to configure your pie chart.

To learn more about dxPieChart's visual elements, refer to the PieChart Elements help section. To learn how to provide data for the dxPieChart widget, refer to the Data Binding section.

Start Tutorial View Demo Watch Video

Configuration

An object that defines configuration options for the dxPieChart widget.

Methods

This section describes the methods that can be used in code to manipulate the dxPieChart object.

Use the dxPieChart registered method to access the dxPieChart object, as demonstrated in the code below.

var pieChart = $("#pieChartContainer").dxPieChart("instance");

Series Types

This section lists the objects that define options to be used to configure series of particular types.

Chart Elements

This section lists the methods and fields of the dxPieChart elements.