Open edmundoa opened 8 years ago
I was playing a bit with this, and trying to adapt our code to use: https://github.com/d3fc/d3fc-sample. So far the Largest Triangle Three Buckets algorithm seems to do a really nice sampling. I don't want to spend too much time on this right now (this would require quite a lot of testing to ensure it works in many other common cases), but I wanted to add my findings.
@edmundoa Is this still an issue with the new widgets in the new search? Thank you!
Problem description
In situations where histograms contain few relevant data points, histograms may appear empty due to the algorithm we use to down-sample the data. The problem is specially bad when graphs have a small width, and histograms include many data points (either by spanning over a long period of time, or by using a small resolution).
For instance, a graph including a single data point (
"result":{"1470221520":1}
), may end up looking like this:This is the result of the same graph, just resized to be wider:
Steps to reproduce the problem
Environment