diff --git a/samples/charts/data-pie-chart/animation-replay/src/index.tsx b/samples/charts/data-pie-chart/animation-replay/src/index.tsx index b656d69a3d..b6929cd3e1 100644 --- a/samples/charts/data-pie-chart/animation-replay/src/index.tsx +++ b/samples/charts/data-pie-chart/animation-replay/src/index.tsx @@ -9,7 +9,6 @@ import { IgrDataPieChart } from 'igniteui-react-charts'; import { ComponentRenderer, PropertyEditorPanelDescriptionModule, DataPieChartDescriptionModule, ItemLegendDescriptionModule } from 'igniteui-react-core'; import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; import { IgrPropertyEditorPropertyDescriptionButtonClickEventArgs } from 'igniteui-react-layouts'; -import { IgrDomainChart } from 'igniteui-react-charts'; import 'igniteui-webcomponents/themes/light/bootstrap.css'; diff --git a/samples/charts/data-pie-chart/others/src/EnergyGlobalDemand.ts b/samples/charts/data-pie-chart/others/src/EnergyGlobalDemand.ts deleted file mode 100644 index 3d2ed388a0..0000000000 --- a/samples/charts/data-pie-chart/others/src/EnergyGlobalDemand.ts +++ /dev/null @@ -1,51 +0,0 @@ -export class EnergyGlobalDemandItem { - public constructor(init: Partial) { - Object.assign(this, init); - } - - public value: number; - public category: string; - public summary: string; - -} -export class EnergyGlobalDemand extends Array { - public constructor(items: Array | number = -1) { - if (Array.isArray(items)) { - super(...items); - } else { - const newItems = [ - new EnergyGlobalDemandItem( - { - value: 37, - category: `Cooling`, - summary: `Cooling 37%` - }), - new EnergyGlobalDemandItem( - { - value: 25, - category: `Residential`, - summary: `Residential 25%` - }), - new EnergyGlobalDemandItem( - { - value: 12, - category: `Heating`, - summary: `Heating 12%` - }), - new EnergyGlobalDemandItem( - { - value: 11, - category: `Lighting`, - summary: `Lighting 11%` - }), - new EnergyGlobalDemandItem( - { - value: 15, - category: `Other`, - summary: `Other 15%` - }), - ]; - super(...newItems.slice(0)); - } - } -} diff --git a/samples/charts/data-pie-chart/others/src/SampleData.ts b/samples/charts/data-pie-chart/others/src/SampleData.ts deleted file mode 100644 index 0680d15fb0..0000000000 --- a/samples/charts/data-pie-chart/others/src/SampleData.ts +++ /dev/null @@ -1,60 +0,0 @@ -export class LocalDataItem { - public constructor(init: Partial) { - Object.assign(this, init); - } - - public v1: number; - public category: string; - -} -export class LocalData extends Array { - public constructor(items: Array | number = -1) { - if (Array.isArray(items)) { - super(...items); - } else { - const newItems = [ - new LocalDataItem( - { - v1: 100, - category: `Maintenance` - }), - new LocalDataItem( - { - v1: 40, - category: `Cooling` - }), - new LocalDataItem( - { - v1: 20, - category: `Residential` - }), - new LocalDataItem( - { - v1: 15, - category: `Utilities` - }), - new LocalDataItem( - { - v1: 10, - category: `Heating` - }), - new LocalDataItem( - { - v1: 5, - category: `Lighting` - }), - new LocalDataItem( - { - v1: 4, - category: `Electric` - }), - new LocalDataItem( - { - v1: 3, - category: `Misc` - }), - ]; - super(...newItems.slice(0)); - } - } -}