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

ScatterPlot - x axis on top #1815

Closed
aberenyi opened this issue Feb 22, 2021 · 2 comments
Closed

ScatterPlot - x axis on top #1815

aberenyi opened this issue Feb 22, 2021 · 2 comments

Comments

@aberenyi
Copy link
Contributor

Hi there,

I've tried to implement a workaround based on this similar issue #1433 for the scatter series example (fiddle).

It looks like the initial position of the axis is fine, but then it's overwritten resulting in an animated movement.

Something like the useRightYAxis for the x axis would be really useful, e.g useTopXAxis, but a workaound would also do for now.

Cheers

@gordonwoodhull
Copy link
Contributor

Good idea. I think it would be fairly easy to add useTopXAxis to CoordinateGridMixin - just search for useRightYAxis and make the corresponding changes for the X axis. It's only used in four methods, one of them the getter/setter.

It is technically possible to add event handlers on both pretransition and renderlet as a way to override both initial and animated position. But it's probably easier just to add the functionality instead.

I'd be glad to help if you want to give it a try!

@aberenyi
Copy link
Contributor Author

@gordonwoodhull sound like a plan!

Will give this a go ASAP and will get back to you.

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

No branches or pull requests

2 participants