ChartsOrg / ChartsOrg/Charts

LineChartRenderer.drawHighlighted crash

Open
#5,154 2 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?

We've been seeing A LOT of crashes reported in LineChartRenderer.drawHighlighted.

## What did you expect to happen?

No crashes

## What happened instead?

It crashes. We've finally got a stack trace that is the probable cause (invalid index in getting lineData[high.dataSetIndex]). We've been unable to reproduce this "on demand".

## DGCharts Environment

DGCharts 5.0.0
Xcode version: 15.2
Platform(s) running DGCharts: iOS

Screenshot 2024-03-04 at 11 55 51 AM

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.