atinux / npm-chart

Visualize npm downloads in a beautiful chart, ready to be shared with your community.
https://npm.chart.dev
MIT License
276 stars 16 forks source link

Lock tooltips by click #6

Open AriPerkkio opened 4 weeks ago

AriPerkkio commented 4 weeks ago

Thanks for the awesome tool!

I would like to create graphs that highlight changes between multiple dates. For this I would need to be able to show multiple tooltips at the same time.

Could the tooltips made so that they lock their visibility when their position is clicked on the graph? So something like this:

atinux commented 3 weeks ago

What would be the goal of having another date displayed? A specific release?

AriPerkkio commented 3 weeks ago

I want to highlight how many new downloads a package has got in specific timeframe, while displaying the overall graph. This would indicate the speed of growth.

Here I would have wanted to show how July 7th reached 5M and at the same time show 6M of September 8th: https://x.com/ari_perkkio/status/1836720747483414719

atinux commented 3 weeks ago

By looking at https://unovis.dev/docs/auxiliary/Crosshair

I am not sure this is possible