I'm not sure exactly what is causing this, so I have not been able to setup a minimal reproduction.
Here is what I'm doing:
- Loading a net chart with data
- Using some facets in our application to filter nodes from appearing.
- Filtering the nodes, to where no nodes, or edges should be shown on the screen
- We are using the node/edge filter functions to accomplish this, and in this case they are returning 'false'.
Then I see this error in the console
zoomcharts.js:42 Uncaught DOMException: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-0.12032) is negative.
at e.t.paintBasicShape (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:42:6931)
at e.t.paint (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:42:6412)
at i.paintNodesImpl (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:44:4814)
at i.paintNodes (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:43:30093)
at i.e.paint (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:42:14688)
at e.paintScene (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:46:6887)
at t.animateFrame (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:33:16403)
at e.paintScene (https://cloud.corp.semanticresearch.com/int-cortex-qa/static/zoomcharts/zoomcharts.js:38:24430)
Do you know what might be causing this so I can hunt down further what might be happening? If I set up a minimal reproduction of what I thought might be the issue with the filters, all seems to work well.
The net chart / nor my application stops behaving as I would expect. As soon as I adjust the filters to where there would be data again, the nodes show like normal and the chart works as expected.