fork-explorer icon indicating copy to clipboard operation
fork-explorer copied to clipboard

% of blocks per pool & Signal as graphic

Open oliverkane opened this issue 3 years ago • 4 comments

Would you welcome a PR with something which converts two columns on the Miners page "Signals" and "Blocks" to a single pie with the number of blocks for and against?

https://benpickles.github.io/peity/

If you're interested, I'll patch something up.

oliverkane avatar May 04 '21 23:05 oliverkane

Hi @oliverkane!

Hmm that's an interesting idea. I'm not fond of importing jQuery as a dependency to the project, but perhaps there is some other lib or way to go about doing this, we could give it a try and see how it would look like.

hsjoberg avatar May 05 '21 20:05 hsjoberg

Oh, yeah, that's just one I'm familiar with. There's a few other libs out there that do the same without the (rather old and bloated) jQuery. I'll give 'er a stab and put in a PR.

oliverkane avatar May 05 '21 21:05 oliverkane

What about something like this for a library? No external deps, fits with the existing React choice, and clocks in at 2kb.

https://toomuchdesign.github.io/react-minimal-pie-chart/index.html?path=/story/pie-chart--custom-size

oliverkane avatar May 05 '21 22:05 oliverkane

I suggest to not use pies. What I want is a stacked share chart showing all pools sorted by signalling, with additionally grand totals for the following categories, shown over all signalling periods:

  • Pools that signal with all mined blocks :green_square:
  • Pools that signal both :green_square: and :red_square:
  • Pools that signal only :red_square:

I want to see if pools gain or lose miners depending on their stance towards speedy trial.

Giszmo avatar May 13 '21 17:05 Giszmo