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

Problems with equal values ​​on the y axis #534

Open
GydeonMarques opened this issue Aug 23, 2019 · 4 comments
Open

Problems with equal values ​​on the y axis #534

GydeonMarques opened this issue Aug 23, 2019 · 4 comments

Comments

@GydeonMarques
Copy link

Hello ... I don't know if it's a problem, but when I have equal Y-axis values ​​on my line chart, it just doesn't show anything on the chart.
See example below

List values = new ArrayList();
values.add(new PointValue(0, 2));
values.add(new PointValue(1, 2));
values.add(new PointValue(2, 2));
values.add(new PointValue(3, 2));

@onecoders
Copy link

Same problem

@dajver
Copy link

dajver commented Oct 2, 2019

yep, have same problem, do we have any solumtion @lecho ?

It's seems that here #455 it was fixed by @uCloudCastle, but for me it doesn't work, seems that problem is because of decimals...

@lecho
Copy link
Owner

lecho commented Oct 6, 2019

Hi guys, it's been a while since I was active in this repo.
I believe the problem is related to the "feature" that this library calculates viewport automatically(min and max for both axis). When all points have the same value min and max are the same and thereby viewport has height/width of 0.
It can be disabled and set manually.
For solution, please take a look at issue #169 and #143

@dajver
Copy link

dajver commented Oct 7, 2019

Hi, thank for your response, but this issue has been fixed here #455.

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

4 participants