ChartsOrg / ChartsOrg/Charts

YAxisRenderer Range crash

Open
#4,908 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

* [x] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md).

## What did you do?

```swift
chartView.rightAxis.drawTopYLabelEntryEnabled = false
chartView.data = CombinedChartData()
```
This codes make crash.

## What did you expect to happen?

No crash.

## What happened instead?

No crash.

## Charts Environment

**Charts version/Branch/Commit Number: 4.1.0
**Xcode version: Xcode 14.0.0
**Swift version: 5.7
**Platform(s) running Charts: iPhone 14 Pro simulator
**macOS version running Xcode:12.6

## Crash Screenshot

![CleanShot 2022-09-14 at 14 17 27@2x](https://user-images.githubusercontent.com/1644903/190075721-05bd3d9d-6b92-418b-b95f-5ae96c10f218.png)

## Demo Project

[FixCrashYAxisRenderer.zip](https://github.com/danielgindi/Charts/files/9563294/FixCrashYAxisRenderer.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.