this post was submitted on 04 Apr 2024
66 points (86.7% liked)

Interesting Shares

1920 readers
38 users here now

Fascinating articles, captivating images, satisfying videos, interesting projects, stunning research and more.

Share something you find incredibly interesting.


Prefix must be included in the title!


Mandatory prefixes for posts

It helps to see at glance what post is about and certain clients also offer filters that make prefixes searchable/filterable.

Note: Photon (m.lemmy.zip) frontend used for links above.


Icon attribution


If someone is interested in moderating this community, message @brikox@lemmy.zip.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] blandfordforever@lemm.ee 3 points 1 year ago* (last edited 1 year ago) (2 children)

Nice work. What if it was a line graph with x as the year, y as the percentage, and each line representing the different drug class? Would that be too many lines?

[–] Venator@lemmy.nz 1 points 1 year ago (1 children)
[–] blandfordforever@lemm.ee 2 points 1 year ago* (last edited 1 year ago) (1 children)

That's great! Its not perfect but it quickly shows that cocaine and pain killers are the real ones making moves. Hallucinogens don't appear to have changed much.

A stacked area chart would also work great.

[–] Venator@lemmy.nz 0 points 1 year ago* (last edited 1 year ago)

Wasn't much work tbh.

i just copy pasted the js back to highcharts chat gt and told it to change it to a line graph : https://jsfiddle.net/bra1sf03/

It might need to be told to put the time on the x axis though 😂