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

EXC_BAD_ACCESS error on PieChart #3923

Closed
1 task done
narek-sv opened this issue Mar 29, 2019 · 0 comments
Closed
1 task done

EXC_BAD_ACCESS error on PieChart #3923

narek-sv opened this issue Mar 29, 2019 · 0 comments

Comments

@narek-sv
Copy link

narek-sv commented Mar 29, 2019

What did you do?

    let dataEntries = [
        PieChartDataEntry(value: 10, label: "AAA"),
        PieChartDataEntry(value: 20, label: "BBB"),
        PieChartDataEntry(value: 70, label: "CCC"),
    ]
    
    let dataSet = PieChartDataSet(dataEntries)
    dataSet.highlightEnabled = false
    dataSet.valueFont = UIFont.systemFont(ofSize: 16, weight: .bold)
    dataSet.entryLabelFont = UIFont.systemFont(ofSize: 14, weight: .medium)

What happened instead?

Thread 1: EXC_BAD_ACCESS (code=1, address=0x40) error on line
-> dataSet.entryLabelFont = UIFont.systemFont(ofSize: 14, weight: .medium)

Charts Environment

**Charts version/Branch/Commit Number: (version 3.2.2 branch 'master'), (branch 'swift-5')
**Xcode version: 10.2
**Swift version: 5.0
**Platform(s) running Charts: (iPhone 6 iOS 12.2), (iPhone 6+ iOS 12.1.2)
**macOS version running Xcode: 10.14.3, 10.14.4

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