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

[bug] Biggest Value in graph being a decimal goes off the graph #40

Open
RamziJabali opened this issue Jun 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@RamziJabali
Copy link

Describe the bug
When your largest number in the line graph contains a decimal and is not a whole number, it goes above the graph.

To Reproduce
Steps to reproduce the behavior:

  1. Create a LineGraph composable
  2. Give it's biggest point on the graph a decimal value
  3. look at graph

Example data to replicate issue:

listOf(
        LineData(x = "Mon", y = 0),
        LineData(x = "Tues", y = 0),
        LineData(x = "Wed", y = 0),
        LineData(x = "Thurs", y = 0),
        LineData(x = "Fri", y = 2.59999999),
        LineData(x = "Sat", y = 0),
        LineData(x = "Sun", y = 0),
    )

Expected behavior
To see points within graph

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot 2024-06-07 at 11 47 40 PM

Smartphone (please complete the following information):

  • Device: Pixel 3a
  • Android Version: API 33
  • Library Version [v1.2.3]

Additional context
Add any other context about the problem here.

@RamziJabali RamziJabali added the bug Something isn't working label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant