truepool / website

4 stars 4 forks source link

Histogram Showing Distribution Of Farm Sizes #99

Open MrPig91 opened 3 years ago

MrPig91 commented 3 years ago

I think a unique chart that I have not seen on other pool website is a histogram of farm sizes. For some reason I always want to know the breakdown of a pool's farmers by farm size. I think this will be neat chart to add that will provide more in-depth pool stats. I looked at the code to see which graphing tools was being used and from what I saw it was google graphs. I have never used them before, but I decided to create a proof of concept to demonstrate what this would look like.

I grabbed the necessary data from the API and used that to create a static data source for the example graph. The proof of concept can be found on my code pen here -> https://codepen.io/mrpig91/pen/ZEyzjgR

undsoft commented 3 years ago

@william-gr

  1. Having backend for this would be more scalable than frontend querying all farmer records. But latter is possible too.
  2. The chart will reset itself when points reset.
WinterSnowfall commented 3 years ago
2. The chart will reset itself when points reset.

Ehm, but why? Size estimates are based on partials directly and not affected by wins AFAIK.

P.S.: Or did you mean it purely as a refresh schedule? In which case I'd do it daily, not tied to wins.