bindWindowResizeEvent not a function error
See original GitHub issueI’m submitting a … (check one with “x”)
- bug report - search github for a similar issue or PR before submitting
- feature request
- support request - use StackOverflow (add the
ngx-charts
tag) or the gitter chat for support questions
I’m using line charts and it throws the following error in the console. The chart works fine but is unable to resize and also flows out of the container even when I have left [view]
undefined.
ERROR TypeError: Object(…) is not a function at LineChartComponent…/src/common/base-chart.component.ts.BaseChartComponent.bindWindowResizeEvent (index.js:7818) at LineChartComponent…/src/common/base-chart.component.ts.BaseChartComponent.ngAfterViewInit (index.js:7730) at callProviderLifecycles (core.js:12748) at callElementProvidersLifecycles (core.js:12715) at callLifecycleHooksChildrenFirst (core.js:12698) at checkAndUpdateView (core.js:13853) at callViewAction (core.js:14195) at execComponentViewsAction (core.js:14127) at checkAndUpdateView (core.js:13850) at callViewAction (core.js:14195)
Please tell us about your environment:
Ubuntu 17.10
- ngx-charts version: x.x.x
Latest
- Angular version: x.x.x
5.2.10
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Chrome
- Language: [all | TypeScript X.X | ES6/7 | ES5] TS
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I think it’s a problem with version 8.0.0. In version 7.3.0 It works just fine, without any errors.
Please use ngx-charts 7 with angular 5. ngx-charts 8.0.0 is only compatible with angular 6+.