Crossfilter - how to find min / max.

I probably missed something trivial. I probably still don’t quite understand some basic concepts of cross-filtering.

Anyway, I created a cross filter with several sizes with filters by size. Now I want to know the min / max of the filtered values ​​(not the keys).

How can i achieve this?

All tips are welcome.

thanks

Peter

+6
source share
1 answer

If you are using d3.js, you can use the "extension" method. I'm just starting to play with the Cross filter to make some diagrams, and here is the snippet I used.

var strmDateAccessor = function (d){return d.strmDate;}; strmDateExtent = []; strmDateExtent = d3.extent(data, strmDateAccessor); // strmDateExtent[0] will equal min // strmDateExtent[1] will equal max 
+1
source

Source: https://habr.com/ru/post/949549/


All Articles