66
you are viewing a single comment's thread
view the rest of the comments
[-] blandfordforever@lemm.ee 3 points 7 months ago* (last edited 7 months ago)

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 7 months ago
[-] blandfordforever@lemm.ee 2 points 7 months ago* (last edited 7 months ago)

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 7 months ago* (last edited 7 months 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 ๐Ÿ˜‚

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

Interesting Shares

1000 readers
356 users here now

Share interesting articles, projects, research, pictures, or videos.


Please include a prefix in your title!


Prefixes for posts

Certain clients offer filters to make prefixes searchable. Photon (m.lemmy.zip) used for hyperlinks below:


Icon attribution

founded 1 year ago
MODERATORS