From 82116373a41afa9376821809d0ab932de6e92022 Mon Sep 17 00:00:00 2001 From: tfsbuild Date: Sat, 8 Feb 2025 05:02:19 +0200 Subject: [PATCH] Adding changes from build igniteui-xplat-examples-output+PRs_2025.2.8.1 --- .../src/DashboardGaugeDataSource.ts | 23 ++++ .../gauge-dashboard/src/app.component.html | 3 +- .../gauge-dashboard/src/app.component.ts | 17 +-- .../radial-label-mode/src/app.component.html | 8 +- .../selection-matcher/.codesandbox/Dockerfile | 1 + .../selection-matcher/.codesandbox/tasks.json | 17 +++ .../selection-matcher/.stackblitzrc | 1 + .../data-chart/selection-matcher/angular.json | 120 ++++++++++++++++++ .../data-chart/selection-matcher/package.json | 43 +++++++ .../src/EnergyRenewableConsumption.ts | 69 ++++++++++ .../selection-matcher/src/app.component.html | 74 +++++++++++ .../selection-matcher/src/app.component.scss | 3 + .../selection-matcher/src/app.component.ts | 84 ++++++++++++ .../selection-matcher/src/app.module.ts | 32 +++++ .../src/environments/environment.prod.ts | 3 + .../src/environments/environment.ts | 16 +++ .../selection-matcher/src/index.html | 23 ++++ .../data-chart/selection-matcher/src/main.ts | 15 +++ .../selection-matcher/src/polyfills.ts | 61 +++++++++ .../selection-matcher/src/styles.scss | 9 ++ .../selection-matcher/src/typings.d.ts | 5 + .../selection-matcher/tsconfig.app.json | 10 ++ .../selection-matcher/tsconfig.json | 27 ++++ .../data-chart/selection-matcher/tslint.json | 31 +++++ .../animation-replay/.codesandbox/Dockerfile | 1 + .../animation-replay/.codesandbox/tasks.json | 17 +++ .../animation-replay/.stackblitzrc | 1 + .../animation-replay/angular.json | 120 ++++++++++++++++++ .../animation-replay/package.json | 46 +++++++ .../src/EnergyGlobalDemand.ts | 0 .../animation-replay/src/app.component.html | 36 ++++++ .../animation-replay/src/app.component.scss | 3 + .../animation-replay/src/app.component.ts | 65 ++++++++++ .../animation-replay/src/app.module.ts | 28 ++++ .../src/environments/environment.prod.ts | 3 + .../src/environments/environment.ts | 16 +++ .../animation-replay/src/index.html | 23 ++++ .../animation-replay/src/main.ts | 15 +++ .../animation-replay/src/polyfills.ts | 61 +++++++++ .../animation-replay/src/styles.scss | 9 ++ .../animation-replay/src/typings.d.ts | 5 + .../animation-replay/tsconfig.app.json | 10 ++ .../animation-replay/tsconfig.json | 27 ++++ .../animation-replay/tslint.json | 31 +++++ .../data-pie-chart/others/src/DataPieData.ts | 60 +++++++++ .../others/src/app.component.html | 15 ++- .../others/src/app.component.ts | 12 +- .../selection/src/app.component.html | 8 +- .../selection/src/app.component.ts | 4 +- 49 files changed, 1283 insertions(+), 28 deletions(-) create mode 100644 samples/charts/dashboard-tile/gauge-dashboard/src/DashboardGaugeDataSource.ts create mode 100644 samples/charts/data-chart/selection-matcher/.codesandbox/Dockerfile create mode 100644 samples/charts/data-chart/selection-matcher/.codesandbox/tasks.json create mode 100644 samples/charts/data-chart/selection-matcher/.stackblitzrc create mode 100644 samples/charts/data-chart/selection-matcher/angular.json create mode 100644 samples/charts/data-chart/selection-matcher/package.json create mode 100644 samples/charts/data-chart/selection-matcher/src/EnergyRenewableConsumption.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/app.component.html create mode 100644 samples/charts/data-chart/selection-matcher/src/app.component.scss create mode 100644 samples/charts/data-chart/selection-matcher/src/app.component.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/app.module.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/environments/environment.prod.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/environments/environment.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/index.html create mode 100644 samples/charts/data-chart/selection-matcher/src/main.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/polyfills.ts create mode 100644 samples/charts/data-chart/selection-matcher/src/styles.scss create mode 100644 samples/charts/data-chart/selection-matcher/src/typings.d.ts create mode 100644 samples/charts/data-chart/selection-matcher/tsconfig.app.json create mode 100644 samples/charts/data-chart/selection-matcher/tsconfig.json create mode 100644 samples/charts/data-chart/selection-matcher/tslint.json create mode 100644 samples/charts/data-pie-chart/animation-replay/.codesandbox/Dockerfile create mode 100644 samples/charts/data-pie-chart/animation-replay/.codesandbox/tasks.json create mode 100644 samples/charts/data-pie-chart/animation-replay/.stackblitzrc create mode 100644 samples/charts/data-pie-chart/animation-replay/angular.json create mode 100644 samples/charts/data-pie-chart/animation-replay/package.json rename samples/charts/data-pie-chart/{others => animation-replay}/src/EnergyGlobalDemand.ts (100%) create mode 100644 samples/charts/data-pie-chart/animation-replay/src/app.component.html create mode 100644 samples/charts/data-pie-chart/animation-replay/src/app.component.scss create mode 100644 samples/charts/data-pie-chart/animation-replay/src/app.component.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/src/app.module.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/src/environments/environment.prod.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/src/environments/environment.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/src/index.html create mode 100644 samples/charts/data-pie-chart/animation-replay/src/main.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/src/polyfills.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/src/styles.scss create mode 100644 samples/charts/data-pie-chart/animation-replay/src/typings.d.ts create mode 100644 samples/charts/data-pie-chart/animation-replay/tsconfig.app.json create mode 100644 samples/charts/data-pie-chart/animation-replay/tsconfig.json create mode 100644 samples/charts/data-pie-chart/animation-replay/tslint.json create mode 100644 samples/charts/data-pie-chart/others/src/DataPieData.ts diff --git a/samples/charts/dashboard-tile/gauge-dashboard/src/DashboardGaugeDataSource.ts b/samples/charts/dashboard-tile/gauge-dashboard/src/DashboardGaugeDataSource.ts new file mode 100644 index 000000000..b739114e0 --- /dev/null +++ b/samples/charts/dashboard-tile/gauge-dashboard/src/DashboardGaugeDataSource.ts @@ -0,0 +1,23 @@ +export class DashboardGaugeDataSourceItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public value: number; + +} +export class DashboardGaugeDataSource extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new DashboardGaugeDataSourceItem( + { + value: 40 + }), + ]; + super(...newItems.slice(0)); + } + } +} diff --git a/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.html b/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.html index b593a3a04..4a179ec96 100644 --- a/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.html +++ b/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.html @@ -3,7 +3,8 @@ + #dashboard + [dataSource]="dashboardGaugeDataSource"> diff --git a/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.ts b/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.ts index eedc40593..9a839259e 100644 --- a/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.ts +++ b/samples/charts/dashboard-tile/gauge-dashboard/src/app.component.ts @@ -1,4 +1,5 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { DashboardGaugeDataSourceItem, DashboardGaugeDataSource } from './DashboardGaugeDataSource'; import { IgxDashboardTileComponent } from 'igniteui-angular-dashboards'; @Component({ @@ -14,6 +15,14 @@ export class AppComponent implements AfterViewInit @ViewChild("dashboard", { static: true } ) private dashboard: IgxDashboardTileComponent + private _dashboardGaugeDataSource: DashboardGaugeDataSource = null; + public get dashboardGaugeDataSource(): DashboardGaugeDataSource { + if (this._dashboardGaugeDataSource == null) + { + this._dashboardGaugeDataSource = new DashboardGaugeDataSource(); + } + return this._dashboardGaugeDataSource; + } public constructor(private _detector: ChangeDetectorRef) { @@ -21,14 +30,6 @@ export class AppComponent implements AfterViewInit public ngAfterViewInit(): void { - this.dashboardTileGaugeOnInit(); - } - - public dashboardTileGaugeOnInit(): void { - - var target = this.dashboard; - - target.dataSource = 40; } } diff --git a/samples/charts/data-chart/radial-label-mode/src/app.component.html b/samples/charts/data-chart/radial-label-mode/src/app.component.html index a56fd3c6a..38cef761c 100644 --- a/samples/charts/data-chart/radial-label-mode/src/app.component.html +++ b/samples/charts/data-chart/radial-label-mode/src/app.component.html @@ -2,14 +2,14 @@
) { + Object.assign(this, init); + } + + public location: string; + public year: number; + public hydro: number; + public solar: number; + public wind: number; + public other: number; + +} +export class EnergyRenewableConsumption extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new EnergyRenewableConsumptionItem( + { + location: `China`, + year: 2019, + hydro: 1269.5, + solar: 223, + wind: 405.2, + other: 102.8 + }), + new EnergyRenewableConsumptionItem( + { + location: `Europe`, + year: 2019, + hydro: 632.54, + solar: 154, + wind: 461.3, + other: 220.3 + }), + new EnergyRenewableConsumptionItem( + { + location: `USA`, + year: 2019, + hydro: 271.16, + solar: 108, + wind: 303.4, + other: 78.34 + }), + new EnergyRenewableConsumptionItem( + { + location: `Brazil`, + year: 2019, + hydro: 399.3, + solar: 5.5, + wind: 55.83, + other: 56.25 + }), + new EnergyRenewableConsumptionItem( + { + location: `Canada`, + year: 2019, + hydro: 381.98, + solar: 4.3, + wind: 34.17, + other: 10.81 + }), + ]; + super(...newItems.slice(0)); + } + } +} diff --git a/samples/charts/data-chart/selection-matcher/src/app.component.html b/samples/charts/data-chart/selection-matcher/src/app.component.html new file mode 100644 index 000000000..6d3ecfb18 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/app.component.html @@ -0,0 +1,74 @@ +
+
+ Renewable Energy Consumption +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + +
+
diff --git a/samples/charts/data-chart/selection-matcher/src/app.component.scss b/samples/charts/data-chart/selection-matcher/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/app.component.scss @@ -0,0 +1,3 @@ +/* styles are loaded the Shared CSS file located at: +https://static.infragistics.com/xplatform/css/samples/ +*/ diff --git a/samples/charts/data-chart/selection-matcher/src/app.component.ts b/samples/charts/data-chart/selection-matcher/src/app.component.ts new file mode 100644 index 000000000..fc712cbef --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/app.component.ts @@ -0,0 +1,84 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { EnergyRenewableConsumptionItem, EnergyRenewableConsumption } from './EnergyRenewableConsumption'; +import { IgxCategoryChartComponent, IgxChartSelection, IgxSeriesMatcher } from 'igniteui-angular-charts'; +import { IgxLegendComponent, IgxDataChartComponent, IgxCategoryYAxisComponent, IgxNumericXAxisComponent, IgxStacked100BarSeriesComponent, IgxStackedFragmentSeriesComponent, IgxDataToolTipLayerComponent } from 'igniteui-angular-charts'; + +@Component({ + standalone: false, + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("legend", { static: true } ) + private legend: IgxLegendComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDataChartComponent + @ViewChild("yAxis", { static: true } ) + private yAxis: IgxCategoryYAxisComponent + @ViewChild("xAxis", { static: true } ) + private xAxis: IgxNumericXAxisComponent + @ViewChild("stacked100BarSeries", { static: true } ) + private stacked100BarSeries: IgxStacked100BarSeriesComponent + @ViewChild("s1", { static: true } ) + private s1: IgxStackedFragmentSeriesComponent + @ViewChild("s2", { static: true } ) + private s2: IgxStackedFragmentSeriesComponent + @ViewChild("s3", { static: true } ) + private s3: IgxStackedFragmentSeriesComponent + @ViewChild("s4", { static: true } ) + private s4: IgxStackedFragmentSeriesComponent + @ViewChild("dataToolTipLayer", { static: true } ) + private dataToolTipLayer: IgxDataToolTipLayerComponent + private _energyRenewableConsumption: EnergyRenewableConsumption = null; + public get energyRenewableConsumption(): EnergyRenewableConsumption { + if (this._energyRenewableConsumption == null) + { + this._energyRenewableConsumption = new EnergyRenewableConsumption(); + } + return this._energyRenewableConsumption; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + this.selectionMatcherOnViewInit(); + } + + private _timer: ReturnType; + + public selectionMatcherOnViewInit(): void { + + var chart = this.chart; + + this._timer = setInterval(() => { + var data = this.energyRenewableConsumption; + let matcher: IgxSeriesMatcher = new IgxSeriesMatcher(); + + let selection: IgxChartSelection = new IgxChartSelection(); + selection.item = data[1]; + matcher.memberPath = "hydro"; + matcher.memberPathType = "ValueMemberPath"; + selection.matcher = matcher; + chart.selectedSeriesItems.add(selection); + + let selection2: IgxChartSelection = new IgxChartSelection(); + selection2.item = data[2]; + matcher.memberPath = "wind"; + matcher.memberPathType = "ValueMemberPath"; + selection2.matcher = matcher; + + chart.selectedSeriesItems.add(selection2); + + }, 100); + } + +} + diff --git a/samples/charts/data-chart/selection-matcher/src/app.module.ts b/samples/charts/data-chart/selection-matcher/src/app.module.ts new file mode 100644 index 000000000..c3c0c7c96 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/app.module.ts @@ -0,0 +1,32 @@ +import { NgModule } from "@angular/core"; +import { FormsModule } from "@angular/forms"; +import { CommonModule } from "@angular/common"; +import { BrowserModule } from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { AppComponent } from "./app.component"; + +import { IgxLegendModule, IgxDataChartCoreModule, IgxDataChartCategoryModule, IgxDataChartCategoryCoreModule, IgxDataChartInteractivityModule, IgxDataChartAnnotationModule, IgxDataChartStackedModule, IgxStackedFragmentSeriesModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxLegendModule, + IgxDataChartCoreModule, + IgxDataChartCategoryModule, + IgxDataChartCategoryCoreModule, + IgxDataChartInteractivityModule, + IgxDataChartAnnotationModule, + IgxDataChartStackedModule, + IgxStackedFragmentSeriesModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-chart/selection-matcher/src/environments/environment.prod.ts b/samples/charts/data-chart/selection-matcher/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-chart/selection-matcher/src/environments/environment.ts b/samples/charts/data-chart/selection-matcher/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/samples/charts/data-chart/selection-matcher/src/index.html b/samples/charts/data-chart/selection-matcher/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-chart/selection-matcher/src/main.ts b/samples/charts/data-chart/selection-matcher/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/main.ts @@ -0,0 +1,15 @@ +// tslint:disable:no-string-literal +import "./polyfills"; +import { enableProdMode } from "@angular/core"; +import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; +import { AppModule } from "./app.module"; + +platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { + // ensure Angular destroys itself on hot reloads. + if (window["ngRef"]) { + window["ngRef"].destroy(); + } + window["ngRef"] = ref; + + // otherwise, log the boot error +}).catch(err => console.error(err)); diff --git a/samples/charts/data-chart/selection-matcher/src/polyfills.ts b/samples/charts/data-chart/selection-matcher/src/polyfills.ts new file mode 100644 index 000000000..bea4237c0 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/polyfills.ts @@ -0,0 +1,61 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** +* BROWSER POLYFILLS +*/ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +//import "classlist.js"; // run `npm install --save classlist.js`. + +/** IE10 and IE11 requires the following for the Reflect API. */ + +/* Evergreen browsers require these. */ +// used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. + +/* + * Required to support Web Animations `@angular/platform-browser/animations`. + * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation + */ +//import "web-animations-js"; // run `npm install --save web-animations-js`. + +/*************************************************************************************************** + * Zone JS is required by Angular itself. + */ +import "hammerjs/hammer"; +import "zone.js"; // included with Angular CLI. + +/*************************************************************************************************** + * @angular/animations polyfill + */ +// if (!Element.prototype.matches) { +// Element.prototype.matches = (Element.prototype as any).msMatchesSelector; +// } + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ + +/** + * Date, currency, decimal and percent pipes. + * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 + */ +// import "intl"; // Run `npm install --save intl`. +// import "intl/locale-data/jsonp/de"; +/** + * Need to import at least one locale-data with intl. + */ +// import "intl/locale-data/jsonp/en"; diff --git a/samples/charts/data-chart/selection-matcher/src/styles.scss b/samples/charts/data-chart/selection-matcher/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/styles.scss @@ -0,0 +1,9 @@ +/* autoprefixer grid: on */ +html, +body { + height: 100%; + width: 100%; + overflow: hidden; + margin: 0; + box-sizing: border-box; +} diff --git a/samples/charts/data-chart/selection-matcher/src/typings.d.ts b/samples/charts/data-chart/selection-matcher/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-chart/selection-matcher/tsconfig.app.json b/samples/charts/data-chart/selection-matcher/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/tsconfig.app.json @@ -0,0 +1,10 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"] +} diff --git a/samples/charts/data-chart/selection-matcher/tsconfig.json b/samples/charts/data-chart/selection-matcher/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "importHelpers": true, + "module": "esnext", + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": false, + "declaration": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "downlevelIteration": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/samples/charts/data-chart/selection-matcher/tslint.json b/samples/charts/data-chart/selection-matcher/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-chart/selection-matcher/tslint.json @@ -0,0 +1,31 @@ +{ + "extends": "tslint:latest", + "rules": { + "deprecation": { + "severity": "warning" + }, + "arrow-parens": false, + "indent": [true, "spaces"], + "interface-name": [true, "always-prefix"], + "max-classes-per-file": false, + "no-bitwise": false, + "no-console": false, + "no-empty": false, + "no-duplicate-imports": false, + "no-implicit-dependencies": false, + "no-object-literal-type-assertion": false, + "no-submodule-imports": [false], + "no-string-literal": false, + "no-trailing-whitespace": false, + "no-var-keyword": false, + "object-literal-sort-keys": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-for-of": false, + "prefer-object-spread": false, + "space-within-parens": false, + "trailing-comma": [true, {"multiline": "never", "singleline": "never"}], + "variable-name": [true, "allow-leading-underscore"] + } +} diff --git a/samples/charts/data-pie-chart/animation-replay/.codesandbox/Dockerfile b/samples/charts/data-pie-chart/animation-replay/.codesandbox/Dockerfile new file mode 100644 index 000000000..adf04bd95 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:18 \ No newline at end of file diff --git a/samples/charts/data-pie-chart/animation-replay/.codesandbox/tasks.json b/samples/charts/data-pie-chart/animation-replay/.codesandbox/tasks.json new file mode 100644 index 000000000..8d92a54cd --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/.codesandbox/tasks.json @@ -0,0 +1,17 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": { + "name": "Start Project", + "command": "node node_modules/@angular/cli/bin/ng serve -o --disable-host-check", + "runAtStart": true + } + } +} \ No newline at end of file diff --git a/samples/charts/data-pie-chart/animation-replay/.stackblitzrc b/samples/charts/data-pie-chart/animation-replay/.stackblitzrc new file mode 100644 index 000000000..dd44ea00f --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/.stackblitzrc @@ -0,0 +1 @@ +{"installDependencies":true, "startCommand":"npm start"} \ No newline at end of file diff --git a/samples/charts/data-pie-chart/animation-replay/angular.json b/samples/charts/data-pie-chart/animation-replay/angular.json new file mode 100644 index 000000000..ff6803cf7 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/angular.json @@ -0,0 +1,120 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "newProjectRoot": "projects", + "projects": { + "demo": { + "schematics": { + "@schematics/angular:component": { + "style": "scss" + }, + "@schematics/angular:application": { + "strict": true + } + }, + "root": "", + "sourceRoot": "src", + "prefix": "app", + "projectType": "application", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo", + "index": "src/index.html", + "main": "src/main.ts", + "polyfills": [ + "src/polyfills.ts" + ], + "tsConfig": "tsconfig.app.json", + "inlineStyleLanguage": "scss", + "assets": [ + "src/assets" + ], + "styles": [ + "src/styles.scss" + ], + "scripts": [], + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "outputHashing": "all", + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ] + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "buildTarget": "demo:build:production" + }, + "development": { + "buildTarget": "demo:build:development" + } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "buildTarget": "demo:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "src/test.ts", + "polyfills": "src/polyfills.ts", + "tsConfig": "tsconfig.spec.json", + "karmaConfig": "karma.conf.js", + "styles": [ + "src/styles.scss" + ], + "scripts": [], + "assets": [ + "src/assets" + ], + "inlineStyleLanguage": "scss", + "stylePreprocessorOptions": { + "includePaths": ["node_modules/"] + } + } + } + } + } + }, + "defaultProject": "demo", + "cli": { + "analytics": false + } +} diff --git a/samples/charts/data-pie-chart/animation-replay/package.json b/samples/charts/data-pie-chart/animation-replay/package.json new file mode 100644 index 000000000..6296f0d14 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/package.json @@ -0,0 +1,46 @@ +{ + "scripts": { + "ng": "ng", + "update": "ng update", + "start": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o", + "build": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng build --configuration production", + "lint": "ng lint" + }, + "dependencies": { + "@angular/animations": "19.0.4", + "@angular/common": "19.0.4", + "@angular/compiler": "19.0.4", + "@angular/core": "19.0.4", + "@angular/forms": "19.0.4", + "@angular/platform-browser": "19.0.4", + "@angular/platform-browser-dynamic": "19.0.4", + "@types/hammerjs": "2.0.40", + "classlist.js": "1.1.20150312", + "hammerjs": "2.0.8", + "igniteui-angular-charts": "19.0.0", + "igniteui-angular-core": "19.0.0", + "igniteui-angular-inputs": "19.0.0", + "igniteui-angular-layouts": "19.0.0", + "igniteui-webcomponents": "5.1.2", + "intl": "1.2.5", + "jszip": "3.8.0", + "rxjs": "7.8.1", + "tslib": "2.6.1", + "web-animations-js": "2.3.2", + "zone.js": "~0.15.0" + }, + "devDependencies": { + "@angular/cli": "19.0.4", + "@angular/compiler-cli": "19.0.4", + "@angular/language-service": "19.0.4", + "@angular-devkit/build-angular": "19.0.4", + "@types/node": "18.17.0", + "codelyzer": "6.0.2", + "jasmine-core": "5.1.1", + "jasmine-spec-reporter": "~4.2.1", + "sass.js": "0.11.1", + "tslint": "~6.1.3", + "ts-node": "10.9.1", + "typescript": "5.6.3" + } +} diff --git a/samples/charts/data-pie-chart/others/src/EnergyGlobalDemand.ts b/samples/charts/data-pie-chart/animation-replay/src/EnergyGlobalDemand.ts similarity index 100% rename from samples/charts/data-pie-chart/others/src/EnergyGlobalDemand.ts rename to samples/charts/data-pie-chart/animation-replay/src/EnergyGlobalDemand.ts diff --git a/samples/charts/data-pie-chart/animation-replay/src/app.component.html b/samples/charts/data-pie-chart/animation-replay/src/app.component.html new file mode 100644 index 000000000..82df72c80 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/app.component.html @@ -0,0 +1,36 @@ +
+
+ + + + +
+
+ Global Electricity Demand by Energy Use +
+
+ + +
+
diff --git a/samples/charts/data-pie-chart/animation-replay/src/app.component.scss b/samples/charts/data-pie-chart/animation-replay/src/app.component.scss new file mode 100644 index 000000000..cbff781da --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/app.component.scss @@ -0,0 +1,3 @@ +/* styles are loaded the Shared CSS file located at: +https://static.infragistics.com/xplatform/css/samples/ +*/ diff --git a/samples/charts/data-pie-chart/animation-replay/src/app.component.ts b/samples/charts/data-pie-chart/animation-replay/src/app.component.ts new file mode 100644 index 000000000..617bfbc01 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/app.component.ts @@ -0,0 +1,65 @@ +import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; +import { ComponentRenderer, PropertyEditorPanelDescriptionModule, DataPieChartDescriptionModule, ItemLegendDescriptionModule } from 'igniteui-angular-core'; +import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { IgxPropertyEditorPropertyDescriptionButtonClickEventArgs } from 'igniteui-angular-layouts'; +import { IgxDomainChart } from 'igniteui-angular-charts'; +import { IgxPropertyEditorPanelComponent, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; +import { IgxDataPieChartComponent } from 'igniteui-angular-charts'; + +import { defineAllComponents } from 'igniteui-webcomponents'; + +defineAllComponents(); + +@Component({ + standalone: false, + selector: "app-root", + styleUrls: ["./app.component.scss"], + templateUrl: "./app.component.html", + changeDetection: ChangeDetectionStrategy.OnPush +}) + +export class AppComponent implements AfterViewInit +{ + + @ViewChild("propertyEditorPanel1", { static: true } ) + private propertyEditorPanel1: IgxPropertyEditorPanelComponent + @ViewChild("propertyEditorPropertyDescription1", { static: true } ) + private propertyEditorPropertyDescription1: IgxPropertyEditorPropertyDescriptionComponent + @ViewChild("chart", { static: true } ) + private chart: IgxDataPieChartComponent + private _energyGlobalDemand: EnergyGlobalDemand = null; + public get energyGlobalDemand(): EnergyGlobalDemand { + if (this._energyGlobalDemand == null) + { + this._energyGlobalDemand = new EnergyGlobalDemand(); + } + return this._energyGlobalDemand; + } + + private _componentRenderer: ComponentRenderer = null; + public get renderer(): ComponentRenderer { + if (this._componentRenderer == null) { + this._componentRenderer = new ComponentRenderer(); + var context = this._componentRenderer.context; + PropertyEditorPanelDescriptionModule.register(context); + DataPieChartDescriptionModule.register(context); + ItemLegendDescriptionModule.register(context); + } + return this._componentRenderer; + } + + public constructor(private _detector: ChangeDetectorRef) + { + } + + public ngAfterViewInit(): void + { + } + + public editorButtonReplayTransitionInDomain({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionButtonClickEventArgs }): void { + var chart = this.chart; + chart.replayTransitionIn(); + } + +} + diff --git a/samples/charts/data-pie-chart/animation-replay/src/app.module.ts b/samples/charts/data-pie-chart/animation-replay/src/app.module.ts new file mode 100644 index 000000000..a66f493d9 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/app.module.ts @@ -0,0 +1,28 @@ +import { NgModule } from "@angular/core"; +import { FormsModule } from "@angular/forms"; +import { CommonModule } from "@angular/common"; +import { BrowserModule } from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { AppComponent } from "./app.component"; + +import { IgxPropertyEditorPanelModule } from 'igniteui-angular-layouts'; +import { IgxDataPieChartModule, IgxItemLegendModule } from 'igniteui-angular-charts'; + +@NgModule({ + bootstrap: [AppComponent], + declarations: [ + AppComponent +], + imports: [ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + IgxPropertyEditorPanelModule, + IgxDataPieChartModule, + IgxItemLegendModule +], + providers: [], + schemas: [] +}) +export class AppModule {} diff --git a/samples/charts/data-pie-chart/animation-replay/src/environments/environment.prod.ts b/samples/charts/data-pie-chart/animation-replay/src/environments/environment.prod.ts new file mode 100644 index 000000000..3612073bc --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/samples/charts/data-pie-chart/animation-replay/src/environments/environment.ts b/samples/charts/data-pie-chart/animation-replay/src/environments/environment.ts new file mode 100644 index 000000000..7b4f817ad --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/samples/charts/data-pie-chart/animation-replay/src/index.html b/samples/charts/data-pie-chart/animation-replay/src/index.html new file mode 100644 index 000000000..7650dfb64 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/index.html @@ -0,0 +1,23 @@ + + + + + + IgniteUI for Angular | Example | infragistics + + + + + + + + + + + + + + + + + diff --git a/samples/charts/data-pie-chart/animation-replay/src/main.ts b/samples/charts/data-pie-chart/animation-replay/src/main.ts new file mode 100644 index 000000000..ec9adcd4a --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/main.ts @@ -0,0 +1,15 @@ +// tslint:disable:no-string-literal +import "./polyfills"; +import { enableProdMode } from "@angular/core"; +import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; +import { AppModule } from "./app.module"; + +platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { + // ensure Angular destroys itself on hot reloads. + if (window["ngRef"]) { + window["ngRef"].destroy(); + } + window["ngRef"] = ref; + + // otherwise, log the boot error +}).catch(err => console.error(err)); diff --git a/samples/charts/data-pie-chart/animation-replay/src/polyfills.ts b/samples/charts/data-pie-chart/animation-replay/src/polyfills.ts new file mode 100644 index 000000000..bea4237c0 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/polyfills.ts @@ -0,0 +1,61 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** +* BROWSER POLYFILLS +*/ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +//import "classlist.js"; // run `npm install --save classlist.js`. + +/** IE10 and IE11 requires the following for the Reflect API. */ + +/* Evergreen browsers require these. */ +// used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. + +/* + * Required to support Web Animations `@angular/platform-browser/animations`. + * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation + */ +//import "web-animations-js"; // run `npm install --save web-animations-js`. + +/*************************************************************************************************** + * Zone JS is required by Angular itself. + */ +import "hammerjs/hammer"; +import "zone.js"; // included with Angular CLI. + +/*************************************************************************************************** + * @angular/animations polyfill + */ +// if (!Element.prototype.matches) { +// Element.prototype.matches = (Element.prototype as any).msMatchesSelector; +// } + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ + +/** + * Date, currency, decimal and percent pipes. + * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 + */ +// import "intl"; // Run `npm install --save intl`. +// import "intl/locale-data/jsonp/de"; +/** + * Need to import at least one locale-data with intl. + */ +// import "intl/locale-data/jsonp/en"; diff --git a/samples/charts/data-pie-chart/animation-replay/src/styles.scss b/samples/charts/data-pie-chart/animation-replay/src/styles.scss new file mode 100644 index 000000000..9b431e92d --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/styles.scss @@ -0,0 +1,9 @@ +/* autoprefixer grid: on */ +html, +body { + height: 100%; + width: 100%; + overflow: hidden; + margin: 0; + box-sizing: border-box; +} diff --git a/samples/charts/data-pie-chart/animation-replay/src/typings.d.ts b/samples/charts/data-pie-chart/animation-replay/src/typings.d.ts new file mode 100644 index 000000000..ef5c7bd62 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/src/typings.d.ts @@ -0,0 +1,5 @@ +/* SystemJS module definition */ +declare var module: NodeModule; +interface NodeModule { + id: string; +} diff --git a/samples/charts/data-pie-chart/animation-replay/tsconfig.app.json b/samples/charts/data-pie-chart/animation-replay/tsconfig.app.json new file mode 100644 index 000000000..ff396d4ce --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/tsconfig.app.json @@ -0,0 +1,10 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"] +} diff --git a/samples/charts/data-pie-chart/animation-replay/tsconfig.json b/samples/charts/data-pie-chart/animation-replay/tsconfig.json new file mode 100644 index 000000000..22d546ab3 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "importHelpers": true, + "module": "esnext", + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": false, + "declaration": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "resolveJsonModule": true, + "esModuleInterop": true, + "downlevelIteration": true, + "target": "es2015", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2018", + "dom" + ] + }, + "angularCompilerOptions": { + "enableIvy": true + } +} \ No newline at end of file diff --git a/samples/charts/data-pie-chart/animation-replay/tslint.json b/samples/charts/data-pie-chart/animation-replay/tslint.json new file mode 100644 index 000000000..777c777d9 --- /dev/null +++ b/samples/charts/data-pie-chart/animation-replay/tslint.json @@ -0,0 +1,31 @@ +{ + "extends": "tslint:latest", + "rules": { + "deprecation": { + "severity": "warning" + }, + "arrow-parens": false, + "indent": [true, "spaces"], + "interface-name": [true, "always-prefix"], + "max-classes-per-file": false, + "no-bitwise": false, + "no-console": false, + "no-empty": false, + "no-duplicate-imports": false, + "no-implicit-dependencies": false, + "no-object-literal-type-assertion": false, + "no-submodule-imports": [false], + "no-string-literal": false, + "no-trailing-whitespace": false, + "no-var-keyword": false, + "object-literal-sort-keys": false, + "only-arrow-functions": false, + "prefer-conditional-expression": false, + "prefer-const": false, + "prefer-for-of": false, + "prefer-object-spread": false, + "space-within-parens": false, + "trailing-comma": [true, {"multiline": "never", "singleline": "never"}], + "variable-name": [true, "allow-leading-underscore"] + } +} diff --git a/samples/charts/data-pie-chart/others/src/DataPieData.ts b/samples/charts/data-pie-chart/others/src/DataPieData.ts new file mode 100644 index 000000000..4bc30e59e --- /dev/null +++ b/samples/charts/data-pie-chart/others/src/DataPieData.ts @@ -0,0 +1,60 @@ +export class DataPieDataItem { + public constructor(init: Partial) { + Object.assign(this, init); + } + + public v1: number; + public category: string; + +} +export class DataPieData extends Array { + public constructor(items: Array | number = -1) { + if (Array.isArray(items)) { + super(...items); + } else { + const newItems = [ + new DataPieDataItem( + { + v1: 100, + category: `Maintenance` + }), + new DataPieDataItem( + { + v1: 40, + category: `Cooling` + }), + new DataPieDataItem( + { + v1: 20, + category: `Residential` + }), + new DataPieDataItem( + { + v1: 15, + category: `Utilities` + }), + new DataPieDataItem( + { + v1: 10, + category: `Heating` + }), + new DataPieDataItem( + { + v1: 5, + category: `Lighting` + }), + new DataPieDataItem( + { + v1: 4, + category: `Electric` + }), + new DataPieDataItem( + { + v1: 3, + category: `Misc` + }), + ]; + super(...newItems.slice(0)); + } + } +} diff --git a/samples/charts/data-pie-chart/others/src/app.component.html b/samples/charts/data-pie-chart/others/src/app.component.html index d70f4e9c5..6e36278e5 100644 --- a/samples/charts/data-pie-chart/others/src/app.component.html +++ b/samples/charts/data-pie-chart/others/src/app.component.html @@ -11,19 +11,21 @@ + primitiveValue="Number" + valueType="EnumValue"> + max="50" + primitiveValue="15"> + label="Others Text: " + valueType="StringValue">
@@ -34,10 +36,9 @@ + othersCategoryThreshold="15"> diff --git a/samples/charts/data-pie-chart/others/src/app.component.ts b/samples/charts/data-pie-chart/others/src/app.component.ts index 7227e8072..45cb6a1a7 100644 --- a/samples/charts/data-pie-chart/others/src/app.component.ts +++ b/samples/charts/data-pie-chart/others/src/app.component.ts @@ -1,6 +1,6 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ComponentRenderer, PropertyEditorPanelDescriptionModule, DataPieChartDescriptionModule, ItemLegendDescriptionModule } from 'igniteui-angular-core'; -import { EnergyGlobalDemandItem, EnergyGlobalDemand } from './EnergyGlobalDemand'; +import { DataPieDataItem, DataPieData } from './DataPieData'; import { IgxPropertyEditorPanelComponent } from 'igniteui-angular-layouts'; import { IgxDataPieChartComponent } from 'igniteui-angular-charts'; @@ -23,13 +23,13 @@ export class AppComponent implements AfterViewInit private propertyEditorPanel1: IgxPropertyEditorPanelComponent @ViewChild("chart", { static: true } ) private chart: IgxDataPieChartComponent - private _energyGlobalDemand: EnergyGlobalDemand = null; - public get energyGlobalDemand(): EnergyGlobalDemand { - if (this._energyGlobalDemand == null) + private _dataPieData: DataPieData = null; + public get dataPieData(): DataPieData { + if (this._dataPieData == null) { - this._energyGlobalDemand = new EnergyGlobalDemand(); + this._dataPieData = new DataPieData(); } - return this._energyGlobalDemand; + return this._dataPieData; } private _componentRenderer: ComponentRenderer = null; diff --git a/samples/charts/data-pie-chart/selection/src/app.component.html b/samples/charts/data-pie-chart/selection/src/app.component.html index 244408a4e..5a8771a99 100644 --- a/samples/charts/data-pie-chart/selection/src/app.component.html +++ b/samples/charts/data-pie-chart/selection/src/app.component.html @@ -9,8 +9,14 @@ name="propertyEditorPanel1" #propertyEditorPanel1>