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?
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.
Created using Google lens to extract the text and then pasted it into https://www.highcharts.com/chat/gpt/
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?
https://jsfiddle.net/8ea7j5Ly/
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.
https://jsfiddle.net/y2evacL4/
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 😂
You should post this to !dataisbeautiful@lemmy.world
Iduno if I’d go so far as to call it beautiful 😂
Also looks like chat gpt “fixed” the gap for 1989 and I failed to notice… Oops.