All docs
V19.2
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

DevExtreme jQuery - Overview

A series is a collection of related data points. The most important characteristic of a series is its type. The PieChart provides Pie and Doughnut series types; the only difference between them is the Doughnut has a blank center.

The Pie series type is used by default, but you can change it to Doughnut using the type option.

jQuery
JavaScript
$(function() {
    $("#pieChartContainer").dxPieChart({
        type: "doughnut" // or "donut"
    });
});
Angular
HTML
TypeScript
<dx-pie-chart
    type="doughnut"> <!-- or "donut" -->
</dx-pie-chart>
import { DxPieChartModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxPieChartModule
    ],
    // ...
})

Use the series option to configure a series. Pass an object to this option if you have only one series, or an array of objects when you have multiple series. In the latter case, you can also specify settings common for all series in the commonSeriesSettings object, for example:

jQuery
JavaScript
$(function() {
    $("#pieChartContainer").dxPieChart({
        commonSeriesSettings: {
            argumentField: "year"
        },
        series: [{
            valueField: "men"
        }, {
            valueField: "women"
        }]
    });
});
Angular
HTML
TypeScript
<dx-pie-chart>
    <dxo-common-series-settings
        argumentField="year">
    </dxo-common-series-settings>
    <dxi-series valueField="men"></dxi-series>
    <dxi-series valueField="women"></dxi-series>
</dx-pie-chart>
import { DxPieChartModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxPieChartModule
    ],
    // ...
})

Settings specified for a series apply to all its points. If you need to customize an individual point, assign a function to the customizePoint option. This function must return an object with options for the point that you want to customize.

jQuery
JavaScript
$(function() {
    $("#pieChartContainer").dxPieChart({
        series: {
            color: "blue"
        },
        // All series points with the value more than 100 turn red
        // Other series points remain blue
        customizePoint: function (pointInfo) {
            return pointInfo.value > 100 ? { color: "red" } : { }
        }
    });
});
Angular
HTML
TypeScript
<dx-pie-chart
    [customizePoint]="customizePoint">
    <dxi-series color="blue"></dxi-series>
</dx-pie-chart>
import { DxPieChartModule } from "devextreme-angular";
// ...
export class AppComponent {
    // All series points with the value more than 100 turn red
    // Other series points remain blue
    customizePoint (pointInfo: any) {
        return pointInfo.value > 100 ? { color: 'red' } : { }
    };
}
@NgModule({
    imports: [
        // ...
        DxPieChartModule
    ],
    // ...
})

Refer to other topics in this section for details on main series features.

See Also