Open rustam-mukhametshin opened 3 years ago
Describe the bug Cant use charts and start serving ng app with defaults.
To Reproduce
ng new newProject
npm i @swimlane/ngx-charts --save
BarChartModule
AppModule
<ngx-charts-bar-vertical></ngx-charts-bar-vertical>
app.component.html
ng serve
@angular/cdk/portal
Expected behavior Serving ng app and seeing empty html, if passed no data in results property. Without requiring @angular/cdk/portal
results
Screenshots
Demo
ngx-charts version "^18.0.1"
"^18.0.1"
Additional context package.json "dependencies": { "@angular/animations": "~11.2.11", "@angular/common": "~11.2.11", "@angular/compiler": "~11.2.11", "@angular/core": "~11.2.11", "@angular/forms": "~11.2.11", "@angular/platform-browser": "~11.2.11", "@angular/platform-browser-dynamic": "~11.2.11", "@angular/router": "~11.2.11", "@swimlane/ngx-charts": "^18.0.1", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.11.3" },
package.json
"dependencies": { "@angular/animations": "~11.2.11", "@angular/common": "~11.2.11", "@angular/compiler": "~11.2.11", "@angular/core": "~11.2.11", "@angular/forms": "~11.2.11", "@angular/platform-browser": "~11.2.11", "@angular/platform-browser-dynamic": "~11.2.11", "@angular/router": "~11.2.11", "@swimlane/ngx-charts": "^18.0.1", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.11.3" },
"devDependencies": { "@angular-devkit/build-angular": "~0.1102.10", "@angular/cli": "~11.2.10", "@angular/compiler-cli": "~11.2.11", "@types/node": "^12.11.1", "typescript": "~4.1.5" }
Same Problem. fall back: ngx-charts version 17.0.1 is working with angular 12.0.1
Same issue except for 17.0.1 doesn't work for me either.
Describe the bug Cant use charts and start serving ng app with defaults.
To Reproduce
ng new newProject
(11/12 angular).npm i @swimlane/ngx-charts --save
BarChartModule
toAppModule
<ngx-charts-bar-vertical></ngx-charts-bar-vertical>
toapp.component.html
ng serve
@angular/cdk/portal
Expected behavior Serving ng app and seeing empty html, if passed no data in
results
property. Without requiring@angular/cdk/portal
Screenshots
Demo
@angular/cdk/portal
, it's not obvious for running on localhost.ngx-charts version
"^18.0.1"
Additional context
package.json
"dependencies": { "@angular/animations": "~11.2.11", "@angular/common": "~11.2.11", "@angular/compiler": "~11.2.11", "@angular/core": "~11.2.11", "@angular/forms": "~11.2.11", "@angular/platform-browser": "~11.2.11", "@angular/platform-browser-dynamic": "~11.2.11", "@angular/router": "~11.2.11", "@swimlane/ngx-charts": "^18.0.1", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.11.3" },
"devDependencies": { "@angular-devkit/build-angular": "~0.1102.10", "@angular/cli": "~11.2.10", "@angular/compiler-cli": "~11.2.11", "@types/node": "^12.11.1", "typescript": "~4.1.5" }