swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

ngx-charts-tree-map: Cannot read property 'filter' of undefined #988

Open juergenr opened 5 years ago

juergenr commented 5 years ago

I'm submitting a ... (check one with "x")

Current 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:

juergenr commented 5 years ago

Maybe connected to #315. But not fixed in current version.

lakartoza commented 4 years ago

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"

Sidewinder1138 commented 3 years ago

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.

juergenr commented 3 years ago

This error exist for more than 3 years now. Will it be corrected some day?