question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bindWindowResizeEvent not a function error

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
AlexanderKozhevincommented, May 15, 2018

I think it’s a problem with version 8.0.0. In version 7.3.0 It works just fine, without any errors.

6reactions
marjan-georgievcommented, May 15, 2018

Please use ngx-charts 7 with angular 5. ngx-charts 8.0.0 is only compatible with angular 6+.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngx-chart error "TypeError: Object(...) is not a function"
I am using Angular version 5.3 and ngx-charts 8.0 which is compatible with Angular 6 and not Angular 5. I installed ngx-charts version...
Read more >
How to fix "Uncaught TypeError: x is not a function" in JavaScript
JS Casts 01 - How to fix "Uncaught TypeError: x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/01 for a summary ...
Read more >
How to Uncaught TypeError: x is not a function - YouTube
TypeError: "x" is not a functionThe JavaScript exception "is not a function " occurs when there was an attempt to call a value...
Read more >
Developers - Observable.fromEvent is not a function - - Bountysource
Observable.fromEvent is not a function at BarVerticalComponent../src/common/base-chart.component.ts.BaseChartComponent.bindWindowResizeEvent (index.js:7220)
Read more >
swimlane/ngx-charts - Gitter
ERROR TypeError: Cannot read property 'fromEvent' of undefined at f.t.bindWindowResizeEvent (app.js?1512419890975:formatted:56271) at f.t.ngAfterViewInit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found