Color Consitency in Character Census

Fixing the color of pie charts in Character Census

Perhaps you've found on a bug on the site or want to request a new feature to Khy'eras? Or maybe there's a continuity error in the lore? For any problems or comments, let us know here!
Post Reply
User avatar
Izzy
Writer
Posts: 5
Joined: January 7th, 2021, 12:56 pm
Location: Denmark
Has thanked: 1 time
Been thanked: 1 time

Color Consitency in Character Census

Post by Izzy »

Type: Technical

Summary: Keep the colors of the pie charts in Character Census consistent across instances. For example, currently under By Gender, Last 180 days Males are green but All Time Males are red. This is confusing at a glance.

This can be done either by manually assigning the colors per option label using a CSS attribute selector like

Code: Select all

[data-circle-name="Male"] {stroke: color}
OR, since the colors of the chart are determined by the order of the options (first option is always dark blue), ensuring the options are in the same order across charts (i.e. Undisclosed, Male, Female, Non-Binary in that exact order)

Reason: This would make the census charts more intuitive to navigate! It's not a high priority feature, but is great quality of life. :)
User avatar
Memoria
Administrator
* { display: coffee; }
Posts: 238
Joined: April 21st, 2018, 9:21 pm
Location: Colorado
Has thanked: 31 times
Been thanked: 62 times
Contact:

Re: Color Consitency in Character Census

Post by Memoria »

I'll look into it! I think I just threw a bunch of colors in there just to get it out.
Post Reply