Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix drawAxes to allow one of two Y axes to be drawn #936

Closed
wants to merge 3 commits into from

Conversation

DJHig
Copy link
Contributor

@DJHig DJHig commented Jun 19, 2018

Hello. This fix is for a bug I noticed that prevented the drawAxes function to properly show only one Y axis when there is data for both. I added a test to cover Y1 drawn, but not Y2 and one for Y2 drawn, but not Y1.

Separately, the docs state the default is that Y2 is not drawn, but the code has all axes drawn by default. I am not sure which is correct so I did not change either.

Thanks for the great work!

@DJHig
Copy link
Contributor Author

DJHig commented Jun 19, 2018

I fixed the broken tests from the first push by refactoring some code.
Failing now due to timeout in a random test. Not sure if possible to fix that.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 90.234% when pulling 3c2b87a on DJHig:fix-drawaxis into da2a028 on danvk:master.

@mirabilos
Copy link
Collaborator

I have merged this without the test timeout increase, as it was not needed. Thank you!

@mirabilos mirabilos closed this Jan 25, 2023
@mirabilos
Copy link
Collaborator

This unfortunately caused a regression: https://dygraphs.com/tests/unboxed-spark.html disables drawing of the lines, and this did not work any more correctly.

fixed by 046bdec

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

Successfully merging this pull request may close these issues.

3 participants