DevExtreme Angular - Equally-Sized Pies

The PieChart widget comprises of a pie and other elements which can affect the pie's size. This means that pies in several side-by-side PieCharts may differ in size. Collect all these widgets in a single size group by setting their sizeGroup options to identical values to avoid this.

HTML
TypeScript
  • <dx-pie-chart ...
  • id="pieChartContainer1"
  • sizeGroup="pies">
  • </dx-pie-chart>
  •  
  • <dx-pie-chart ...
  • id="pieChartContainer2"
  • sizeGroup="pies">
  • </dx-pie-chart>
  • import { DxPieChartModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxPieChartModule
  • ],
  • // ...
  • })

The widgets should have identical layouts, that is, the same container size, title and legend position, etc. Note also that a single page can contain many size groups, but a widget can be a member of only one of them.

View Demo