Ethnicity pie charts drill-down visualisation

Inspired by this thread, I wanted to circulate the idea of creating a pie chart representation of ethnicity, using person attributes set for the ancestors, and then drilling down into descendants, in case a family has children, to build a chart showing ethnic origin, just like in this post: How do you record Enclave births? - #4 by emyoulation

As probably discussed multiple times, it’s not a scientifically accurate way to confirm the origin share, but we could give the user the possibility to say what they want to use it for – nationality/ethnicity/identity. Given that we’re barely 20 years into consumer DNA testing, which is still not widely available in certain places, it’s not possible to have such a test done for many people in the family tree.

My idea is to build a d3 visual using a specific attribute(s) set for a person. Then, if there is data for their partner and a child, we can graph the distribution of ethnicity that the descendant has, using the same graph method as other visual relationships are drawn. One of the exotic pivots here could be to populate the descendants’ attribute fields automatically; however, this could mess with manually entered data that one could want to add to a specific descendant.

What do people think of this idea?

1 Like

I think that would be fantastic, but I would actually think it bigger:

  • A generic way to define categories (e.g. by attribute value)
  • Different visualizations of the categories, pie chart being one possibility.

We already have the d3-based fan charts which allow category coloring based on some predefined things, like religious denomination (based on the Religion event). It would be cool to use the same kind of categories both for fan charts and pie charts. We could share much of the same JS logic.

To me, the main question is how to shape the UI to define the categories to be plotted.

2 Likes