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 3d2ed388a..000000000 --- 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)); - } - } -}