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 support for power scales with custom exponent #100

Open
davelandry opened this issue Nov 30, 2020 · 0 comments
Open

add support for power scales with custom exponent #100

davelandry opened this issue Nov 30, 2020 · 0 comments
Labels

Comments

@davelandry
Copy link
Member

Originally posted by @xscotta in this issue

I have used the following options to tease out more of the data when the difference between max/min is great.
.yConfig({ scale: "sqrt" }) — This applies a fixed exponent of 0.5 to the axis
.yConfig({ scale: "log" }) — This applies a natural log(e) to the axis

If I want to specify an exponent of 0.4 or 0.3, can I use "pow"?
.yConfig({ scale: "pow" }) — And then specify the exponent somewhere?

The documentation on D3plus http://d3plus.org/examples/d3plus-axis/scale-time/ says All of the scales made available by d3-scale are usable for an Axis by passing the name of the scale, in all lowercase, to the .scale( ) method.

Thanks for your help, I looked through the D3plus code and documentation but couldn't work it out.

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

No branches or pull requests

1 participant