kurkle / chartjs-chart-sankey

Chart.js module for creating sankey diagrams
MIT License
152 stars 29 forks source link

[question]: Filter empty flows? #153

Closed bbuchalter closed 1 month ago

bbuchalter commented 1 month ago

I am generating the data for my flows dynamically. Adding guards to ensure that each flow does not have a zero value would be a burden and feels like a reasonable option to support. Does this support exist?

kurkle commented 1 month ago

It is better to preprocess the data, because chart might need to do the filtering on each update. I did not take a look though, and its always possible to cache things - at the cost of complexity.