ChartsOrg / ChartsOrg/Charts

Demo App Crash Can't form Range with upperBound < lowerBound

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

Description

Demo app (and my company app) crashing with "Range requires lowerBound <= upperBound"

## What did you do?

Here is how to reproduce this on the demo app

iOS demo app

tap line chart dual Y axis
Double tap center of chart
Scroll till you hit the right most side
you will get the Range requires lowerbound <= upperBound error... or at least I have always gotten the error

This happens in the same order with "line chart dual Y-axis", "Combined chart", and "Scatter Chart" on the demo app
I am also only experiencing this error in my project with 4.0+, not in 3.6

## What did you expect to happen?

I expected the graph to scroll to the rightmost value of the graph

## What happened instead?

Error - Range requires lowerBound <= upperBound.

## Charts Environment

**Charts version/Branch/Commit Number:** demo app from the website.. it says version 4.0.0
**Xcode version:** 12.5
**Swift version:** swift 5
**Platform(s) running Charts:** ios
**macOS version running Xcode:** big sur 11.3

## Demo Project
its the ios demo app
https://github.com/danielgindi/Charts

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.