Your search did not match any results.
Charts

Pie with Multiple Series

Documentation
This demo illustrates the ability of the PieChart to display multiple series on a single chart. Different series are displayed as rings inside one another.
Copy to Codepen
Apply
Reset
var DemoApp = angular.module('DemoApp', ['dx']); DemoApp.controller('DemoController', function DemoController($scope) { $scope.chartOptions = { palette: "ocean", dataSource: dataSource, type: "doughnut", title: { text: "Imports/Exports of Goods and Services", subtitle: { text: "(billion US$, 2012)" } }, legend: { visible: true }, commonSeriesSettings: { innerRadius: 0.2, label: { visible: false } }, tooltip: { enabled: true, format: "currency", customizeTooltip: function() { return { text: this.argumentText + "<br>" + this.seriesName + ": " + this.valueText + "B" }; } }, "export": { enabled: true }, series: [{ name: "Export", argumentField: "Country", valueField: "Export", }, { name: "Import", argumentField: "Country", valueField: "Import" }] }; });
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script src="js/jquery-3.1.0.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/event.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/supplemental.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/unresolved.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/message.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/number.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/currency.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/date.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.light.css" /> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.16/angular.min.js"></script> <script>window.angular || document.write(decodeURIComponent('%3Cscript src="js/angular.min.js"%3E%3C\/script%3E'))</script> <script src="https://cdn3.devexpress.com/jslib/17.1.3/js/dx.all.js"></script> <script src="data.js"></script> <link rel="stylesheet" type ="text/css" href ="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container" ng-app="DemoApp" ng-controller="DemoController"> <div id="pie" dx-pie-chart="chartOptions"></div> </div> </body> </html>
#pie { height: 440px; } #pie * { margin: 0 auto; }
var dataSource = [ { Country: "Brazil", Export: 243, Import: 233 }, { Country: "Russia", Export: 529, Import: 335 }, { Country: "India", Export: 293, Import: 489 }, { Country: "China", Export: 2049, Import: 1818 }, { Country: "Japan", Export: 799, Import: 886 }, { Country: "USA", Export: 1547, Import: 2335 }, { Country: "Canada", Export: 455, Import: 475 }, { Country: "France", Export: 569, Import: 674 }, { Country: "England", Export: 468, Import: 680 }, { Country: "Germany", Export: 1407, Import: 1167 } ];