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

How to remove the additional centre y-axis line? #240

Open
mlawlerau opened this issue Jul 25, 2023 · 5 comments
Open

How to remove the additional centre y-axis line? #240

mlawlerau opened this issue Jul 25, 2023 · 5 comments

Comments

@mlawlerau
Copy link

SwiftUICharts seems to always add x and y axis centre markers regardless of configuration of x or y GridStyle.
When my charts have an odd number of grid lines then this falls on a desired gridline so no problem.
But when my charts need to have an even number of gridlines due to nice axis scaling, the additional y-axis centre line looks out of place.
Any way to stop this line from appearing?

@enrydell
Copy link

enrydell commented Sep 6, 2023

I'm looking for the same, how to remove the auto-added y-axis middle line, it's pretty annoying

The line inside the red box is auto added by the lib, even removing all .axisGrid().. doesn't remove it

Captura de Tela 2023-09-06 às 16 30 10

@enrydell
Copy link

enrydell commented Sep 6, 2023

@willdale @ataias @xremix

@enrydell
Copy link

enrydell commented Sep 6, 2023

I may have found a solution, but don't know why it works

I had this line .id(data.id) on the modifiers, removing it made the line disappear

@mlawlerau
Copy link
Author

Thanks for commenting on this issue, but I dont have a line like that :-(

Where exactly is it?

Still looking for a fix for this.

@enrydell
Copy link

enrydell commented Sep 8, 2023

This .id(data.id)? Was on the modifiers here, just like the .yGrid... methods

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