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 plot with negative values #13

Open
neoneye opened this issue Dec 30, 2021 · 0 comments
Open

log plot with negative values #13

neoneye opened this issue Dec 30, 2021 · 0 comments
Labels
web-edit Edit and run loda in the browser

Comments

@neoneye
Copy link
Collaborator

neoneye commented Dec 30, 2021

Expected

Show both positive and negative values using logarithmic scale on the y-axis.

Actual

ChartJS supports logarithmic scale for values that are 1 or greater. And it works fine.

However as of 30 Dec 2021, ChartJS doesn't support logarithmic scale for negative values.
ChartJS doesn't show a point if there is a problem with it.

I made a crappy workaround where I clamp the problematic y-value to 1 and color the point red.

Solution A

Find another javascript chart library that can do this.

Solution B

Modify ChartJS with support for different scaling options.

@neoneye neoneye added the web-edit Edit and run loda in the browser label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-edit Edit and run loda in the browser
Projects
None yet
Development

No branches or pull requests

1 participant