openfoodfacts / search-a-licious

🍊🔎 A pluggable search service for large collections of objects (like Open Food Facts)
https://search.openfoodfacts.org
GNU Affero General Public License v3.0
6 stars 4 forks source link

Scatter charts should be on all data, not current page only #211

Open alexgarel opened 3 days ago

alexgarel commented 3 days ago

Problem

https://github.com/openfoodfacts/search-a-licious/pull/189 introduced scatter plot, but they are only based on current page results, while we would like to see results from whole dataset

Proposed solution

In build_charts, gather data we need to get, and relaunch a search with same query but getting only needed data to draw the chart.

Based on the count from the search (as we already launched search):