interactive filtering histogram widget with cartoJS

22 views
Skip to first unread message

christina2 revest

unread,
Jul 24, 2020, 7:02:42 AM7/24/20
to cartodb
Hi,

I would like an interactive filtering histogram widget like this one https://public.carto.com/builder/0c982e6d-b254-4e2b-86ed-e0f097f519c2/embed (the population density histogram widgets on right bottom of screen). When you click or select histogram's bars datas are filtered on map. 


I know how to do this with cartoDB;
https://carto.com/help/tutorials/improve-the-message-of-your-map-through-styling/#leverage-autostyling
What I want is to make 1 with cartoJS.

As cartoJS solution, I found this histogram widget : https://carto.com/developers/carto-vl/examples/#example-viewport-histogram-widget
but the widget is not interactive.
Clicking on histogram's bars does not filter the spots on the map.

Anyone knows how I could make interactive filtering histogram widget with cartoJS ?

Thanks

 

christina2 revest

unread,
Jul 25, 2020, 5:34:47 AM7/25/20
to cartodb
Reply all
Reply to author
Forward
0 new messages