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

Line chart with LineChartView the line is lower than the minimum values #3513

Closed
1 task done
frfuentes opened this issue Jun 13, 2018 · 6 comments
Closed
1 task done

Comments

@frfuentes
Copy link

frfuentes commented Jun 13, 2018

What did you do?

I'm working on a line graph using LineChartView, in CubicBezier mode

What did you expect to happen?

I try to obtain a graph allowing curves, but respecting the limits

What happened instead?

captura de pantalla 2018-06-13 a la s 13 37 30

In many cases the line is lower than the minimum values generating confusion, as you can see in the image, the line seems to have values below 0

Charts Environment

Charts version/Branch/Commit Number: 3.3.1 Release
Xcode version: 8.2.1
Swift version: 2
Platform(s) running Charts: iOS
macOS version running Xcode: 10.13.4

@thierryH91200
Copy link
Contributor

try to play... with Intensity for cubic lines

default: 0.2

dataset.cubicIntensity = (min = 0.05, max = 1)
I think 0.1 should be fine

@thierryH91200
Copy link
Contributor

it's impossible to be Swift version: 2
please read readme

Xcode 9.3 / Swift 4.1
iOS >= 8.0 (Use as an Embedded Framework)
tvOS >= 9.0
macOS >= 10.11

@thierryH91200
Copy link
Contributor

your issue is completely normal
see https://en.wikipedia.org/wiki/Bézier_curve

@frfuentes
Copy link
Author

Thanks @thierryH91200, yes you are rigth is swift 3, but i tested whit 0.05 cubicIntensity but still having the same problem !

@thierryH91200
Copy link
Contributor

stop it's not a problem it is a CubicBezier
bezier_2_big

@liuxuan30
Copy link
Member

try horizontal bezier. the cubic one is a little buggy.

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

3 participants