@@ -2,12 +2,12 @@ import React from 'react';
22import ReactDOM from 'react-dom/client' ;
33import './index.css' ;
44
5- import { LocalDataItem , LocalData } from './SampleData' ;
65import { IgrPropertyEditorPanelModule } from 'igniteui-react-layouts' ;
76import { IgrDataPieChartModule , IgrItemLegendModule } from 'igniteui-react-charts' ;
87import { IgrPropertyEditorPanel , IgrPropertyEditorPropertyDescription } from 'igniteui-react-layouts' ;
98import { IgrDataPieChart } from 'igniteui-react-charts' ;
109import { ComponentRenderer , PropertyEditorPanelDescriptionModule , DataPieChartDescriptionModule , ItemLegendDescriptionModule } from 'igniteui-react-core' ;
10+ import { DataPieDataItem , DataPieData } from './DataPieData' ;
1111
1212import 'igniteui-webcomponents/themes/light/bootstrap.css' ;
1313
@@ -77,7 +77,7 @@ export default class Sample extends React.Component<any, any> {
7777 < div className = "container fill" >
7878 < IgrDataPieChart
7979 ref = { this . chartRef }
80- dataSource = { this . localData }
80+ dataSource = { this . dataPieData }
8181 othersCategoryType = "Number"
8282 othersCategoryThreshold = "15" >
8383 </ IgrDataPieChart >
@@ -86,13 +86,13 @@ export default class Sample extends React.Component<any, any> {
8686 ) ;
8787 }
8888
89- private _localData : LocalData = null ;
90- public get localData ( ) : LocalData {
91- if ( this . _localData == null )
89+ private _dataPieData : DataPieData = null ;
90+ public get dataPieData ( ) : DataPieData {
91+ if ( this . _dataPieData == null )
9292 {
93- this . _localData = new LocalData ( ) ;
93+ this . _dataPieData = new DataPieData ( ) ;
9494 }
95- return this . _localData ;
95+ return this . _dataPieData ;
9696 }
9797
9898 private _componentRenderer : ComponentRenderer = null ;
0 commit comments