ChartsOrg / ChartsOrg/Charts

Horizontal Bezier mode issue when first value positive but others are `0`

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

Description

## What did you do?
I need to display history data with **.horizontalBezier** mode to have smooth lines.

## What did you expect to happen?
In case when first value is positive, but others are `0` it looks this way:
![Simulator Screen Shot - iPad Air 2 - 2019-03-28 at 12 42 48](https://user-images.githubusercontent.com/11133998/55147654-d2abf480-5157-11e9-96bc-2016df39e9df.png)

I excepted that curved line should go through all the points.

## What happened instead?
Curved line doesn't go through the second point for some reason.

## Charts Environment

**Charts version/Branch/Commit Number:**
PODS:
- Charts (3.2.2):
- Charts/Core (= 3.2.2)
- Charts/Core (3.2.2)

**Xcode version:** Version 10.2 (10E125)
**Swift version:** 5.0
**Platform(s) running Charts:** iOS
**macOS version running Xcode:** 10.14.4 (18E226)

## Demo Project
https://www.dropbox.com/s/gqf1qsu0k61mlld/ChartsHorizontalBezierIssue.zip?dl=0

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.