Last.fm Original Tag Chart

Restores the "subway map" chart on new Last.fm report pages

Install this script?
Author's suggested script

You may also like Last.fm Colored Tags.

Install this script
Author
Nathan Blume
Daily installs
0
Total installs
43
Ratings
0 0 0
Version
1.5
Created
2024-01-20
Updated
2024-04-06
License
MIT
Applies to

Description

This userscript runs on new-style (dark) report pages on Last.fm and restores the old "subway map" chart for weekly, monthly, and yearly reports. It does not run on the older style pages, which currently retain the "subway map" chart.

Notes

The table of top tags in the new style report pages doesn't always contain 5 tags for each date. There isn't a good way to determine the missing tags so there may be missing nodes in the chart. (This bug has been acknowledged by the dev team and will hopefully be fixed soon.)

Technical Details

The chart is built using d3 v4 and a hand-made recreation of the original SVG chart layout. The original charts are made using highcharts, but I was unable to find a way to utilize that engine in the browser. I think d3 was able to reproduce it adequately. It also utilizes jquery, jquery-address, and wait-for-key-elements.

To Do

  • Check touchscreen compatibility