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

Log chart #233

Open
redbar0n opened this issue Mar 28, 2021 · 2 comments
Open

Log chart #233

redbar0n opened this issue Mar 28, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@redbar0n
Copy link

It would be awesome to be able to switch the chart view from regular to a logarithmic chart. Because in a log chart then you'd be able to see how much a library is growing compared to its own current size. It would be easier to compare upcoming libraries with established ones, since their chart wouldn't be made minuscule and unintelligible side by side. Ultimately, what you want to compare is not absolute values but the growth rate, and a log chart is perfect for that. (Just as when you're comparing stocks.)

I see moiva is using chart.js. Luckily, that library already has the log chart feature available:

https://www.chartjs.org/samples/latest/scales/logarithmic/line.html

Should be as simple as having a button that would change the Y axis of the chart:

https://www.chartjs.org/docs/latest/axes/cartesian/logarithmic.html

@aantipov
Copy link
Owner

I like the idea 👍 Thanks for looking into chart.js and finding the example.
I will look into it

@aantipov aantipov added the enhancement New feature or request label Mar 29, 2021
@redbar0n
Copy link
Author

https://npmcharts.com/ has a log chart checkbox. It may serve as inspiration.

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