bgrsquared / places

Looking into names of places ( http://bgrsquared.com/places/ ), based on Moritz Stefaner's http://truth-and-beauty.net/experiments/ach-ingen-zell/
http://bgrsquared.com/places/
MIT License
45 stars 6 forks source link

Idea: Highlight match type in results #8

Open claudiush opened 8 years ago

claudiush commented 8 years ago

Scenario: Multiple prefix or suffix filters applied, e.g. "witz" + "itz" + "schütz". Apart from the first dimension of spread over country there's also the second information dimension of "spread within dot" interesting to see on first view. Let's take these matches as example:

Basank(witz), Brießn(itz), Canne(witz), Cortn(itz), Dahlo(witz), Dober(schütz), Drie(witz), Geißl(itz), Groß Saubern(itz)

Idea: Color the matches in a secondary scale (to avoid confusion with the map coloring), e.g. all endings matching "itz" in red, "witz" in darker red and "schütz" in very dark red.

Bonus: You might want to list out the fraction matches in this dot, e.g. "66% witz 18% itz 16% schütz"

chroth7 commented 8 years ago

Thanks for the input! Not sure if I understand properly - so based on your example:

So we have (1) "witz", (2) "itz", (3) "schütz".

In the current app, I would then color the dot on a primary scale, from purple to yellowish.

Where would I apply the secondary? Or how would the red tones be visible?

And also: e.g. Basankwitz matches both (1) and (2), what then?

If possible, can you provide some scale (e.g. d3-scale-like) or (pseudo-)code on how you might implement it? (or a PR :) )

Thanks!