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

drawBarShadowEnabled is crashing in swift 4 #3505

Closed
muthusabarinathan opened this issue Jun 12, 2018 · 1 comment
Closed

drawBarShadowEnabled is crashing in swift 4 #3505

muthusabarinathan opened this issue Jun 12, 2018 · 1 comment

Comments

@muthusabarinathan
Copy link

What did you expect to happen?

I would like to create CombinedChartView with Line and Bar charts.

What happened instead?

@IBOutlet weak var m_ChartView: CombinedChartView!

m_ChartView.drawBarShadowEnabled = false
m_ChartView.highlightFullBarEnabled = false
m_ChartView.drawOrder = [DrawOrder.bar.rawValue,
                               DrawOrder.bubble.rawValue,
                               DrawOrder.candle.rawValue,
                               DrawOrder.line.rawValue,
                               DrawOrder.scatter.rawValue]

Am getting crashes on this line.

Charts Environment

Charts version/Branch/Commit Number: 3.1.1
Xcode version: 9.2
Swift version: 4.0
Platform(s) running Charts: iOS
macOS version running Xcode: 10.13.1

@muthusabarinathan
Copy link
Author

I Fixed this issue by myself. Issue is by mistakenly I assigned m_ChartView as LineChartView. When I changed it into CombinedChartView, everything is working good.

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