Closed kum-deepak closed 3 years ago
This is neat!
Do you think it would be worthwhile to make a reusable widget out of the Current Filters display? The Saved Filter States is probably just for the demo, but I imagine people will want the Current Filters widget, and that's a fair amount of code to copy/paste.
I am not going to merge this as of now. Before the final release, the current filters would be created as a widget.
I decided to merge this. Keeping too many open PRs is not great - I realized the hard way :smile:
After running
grunt server
go to http://localhost:8888/web/examples/current-filters.html. This example uses stock.js as is (this meant copying ndx.json).This demonstrates two capabilities:
Current filters widget
clear all
which works similar tochartGroup.filterall
however it does so by restoring an empty list as filters - effectively removing all filters.Saved filter states
save current state
to save - it will get added to the saved state list.Currently experimental; will proceed based on feedback.