Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load longer history on demand #922

Open
janpio opened this issue Mar 31, 2022 · 3 comments
Open

Load longer history on demand #922

janpio opened this issue Mar 31, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@janpio
Copy link

janpio commented Mar 31, 2022

Great tool!

It would be great if the package page could go back further in time on demand. This would allow potentially see longer term developments in the size of a package.

@styfle
Copy link
Owner

styfle commented Apr 1, 2022

Hi @janpio

You can click the the left-most bar in the chart to view an older version and then the chart will shift. Keep clicking the the left-most bar to move further back in time.

@janpio
Copy link
Author

janpio commented Apr 1, 2022

Ohhhhh - that was not obvious to me.

Maybe add a (<) button (or (>)) to the sides when you can do that that has the same link?

Even better (for my use case at least) would be to actually load more bars in the same view, so I can compare more and more versions. But that would probably be harder to change/implement.

@styfle
Copy link
Owner

styfle commented Apr 1, 2022

Another solution would be to switch from the stacked bar chart to a custom line chart to try and fit more information.

https://www.chartjs.org/docs/latest/samples/line/point-styling.html

The current Package Phobia works without any frontend JS which is kinda nice but I think its time to move to a more interactive solution.


Also note that you can provide commas to list specific versions such as

https://packagephobia.com/result?p=typescript%400.8.0%2Ctypescript%401.0.0%2Ctypescript%402.0.2%2Ctypescript%403.0.3%2Ctypescript%404.0.2

@styfle styfle added the enhancement New feature or request label Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants