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

add symlog.xOffset() so symlog can be centered away from x=0 #238

Open
kussmaul opened this issue Mar 18, 2021 · 0 comments
Open

add symlog.xOffset() so symlog can be centered away from x=0 #238

kussmaul opened this issue Mar 18, 2021 · 0 comments

Comments

@kussmaul
Copy link

I would like to have symlog.xOffset() center the function at a given x-value, which would be subtracted from each x in the forward equation, and added to the inverse equation.
Currently, the Symlog scale is centered at x=0, and symlog.constant() adjusts the slope near the origin. I think xOffset() would be useful, backwards compatible (defaults to 0), and not difficult to add to the current code.

Context: My data ranges over days or months, but has minute-level features. I am working on a swimlane chart (inspired by this example) which shows the full range on a mini-chart and a selected subrange on a main-chart. Currently, it is difficult to select a subrange to see minute-level features. Thus, I would like to to use a symlog scale on the mini-chart, centered on the subrange (not on 0); the main-chart would have a linear scale.

Thank you for your consideration and feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant