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 adding vertical lines on X-axis with some intervals? #5221

Open
kami-kgu opened this issue Jan 15, 2025 · 0 comments
Open

How adding vertical lines on X-axis with some intervals? #5221

kami-kgu opened this issue Jan 15, 2025 · 0 comments

Comments

@kami-kgu
Copy link

What did you do?

I added those code when I init a BarChartView object.

chart.xAxis.drawGridLinesEnabled = true
chart.xAxis.gridColor = UIColor(EngageColors.textTertiaryBody)
chart.xAxis.gridLineWidth = 0.5

What did you expect to happen?

I want add vertical lines on X-axis with intervals, like this:
Screenshot 2025-01-15 at 16 55 59

What happened instead?

Now I get this:
Screenshot 2025-01-15 at 17 08 45
The vertical lines on X-axis is continuous.

DGCharts Environment

**DGCharts version/Branch/Commit Number: 5.0.0 with SPM in Xcode
**Xcode version: 16.2
**Swift version: 6.0
**Platform(s) running DGCharts: iOS 18.2.1
**macOS version running Xcode: 15.1.1

Thank 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

1 participant