Open juergenr opened 5 years ago
Maybe connected to #315. But not fixed in current version.
I got this error too, but noticed that it was because in my .ts I called my data Input() = chartData
and in my .html I left it [results] = "single"
This happens when you don't have any data in your "results" array. Instead of crashing out with an error, the chart should just not show anything, like the other charts do. So this is definitely a bug.
For some reason someone closed https://github.com/swimlane/ngx-charts/issues/315, even though this bug was never fixed.
This error exist for more than 3 years now. Will it be corrected some day?
I'm submitting a ... (check one with "x")
ngx-charts
tag) or the gitter chat for support questionsCurrent behavior
Error: Cannot read property 'filter' of undefined
Expected behavior
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
ngx-charts version: x.x.x
9.0.0
Angular version: x.x.x
6.1.7
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 ]
all
Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript