this post was submitted on 08 Jun 2024
897 points (99.1% liked)

Data Is Beautiful

1831 readers
22 users here now

A place to share and discuss data visualizations. #dataviz


(under new moderation as of 2024-01, please let me know if there are any changes you want to see!)

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 4 points 4 months ago (1 children)

We need to invent an image format that let's chart colorw be tweaked after the fact lol

[โ€“] grue 2 points 4 months ago* (last edited 4 months ago) (1 children)

Actually, that's a feature that was common going all the way back to the very earliest image file formats: https://en.wikipedia.org/wiki/Indexed_color

It'd be easy enough to make the chart a plain old GIF or indexed PNG; the only non-trivial part is that you'd need add some code to the page it's embedded in to swap out the color palette. (You could also make it an SVG and manipulate it even more easily using the DOM.)

[โ€“] [email protected] 0 points 4 months ago

Well, the image format is based on indexed color for compression purposes ... But it's not like it calls out "these indexes should be customizable".