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

ChartLimitLine is not drawn as dashed #4291

Closed
damianogiusti opened this issue Feb 14, 2020 · 0 comments
Closed

ChartLimitLine is not drawn as dashed #4291

damianogiusti opened this issue Feb 14, 2020 · 0 comments

Comments

@damianogiusti
Copy link

What did you do?

I'm setting up a ChartLimitLine for the left axis of a LineChartView to be dashed. The code is the following:

let line = ChartLimitLine(limit: upperY)
line.lineColor = .red
line.lineWidth = 2
line.lineDashLengths = [8.0]
lineChartView.leftAxis.addLimitLine(line)

What did you expect to happen?

The horizontal limit line is drawn with a red color using a dashed pattern.

What happened instead?

The horizontal limit line is drawn without a dashed pattern, like a standard line.

image

Charts Environment

Version: 3.4.0
Xcode version: 11.2.1 (11B500)
Swift version: Swift 5
Platform(s) running Charts: iOS
macOS version running Xcode: 10.14.5 (18F132)

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