Giter VIP home page Giter VIP logo

composable-graphs's Issues

Update Compose Version

Hello, I'm interested in your open source!
I have some questions!

The current version of compose is 1.1.0, can you version up?
Or can I contribute to the update of the compose version?

Handle edge cases

This is a nice library, and I would like you to consider a few enhancements. I will create one by one.

The first one is to handle edge cases. Specifically, for line charts:

  1. Display a single point if the number of data is 1
  2. Do not crash if there is no data. Perhaps display an empty graph is fine.

Decouple axis labels from LineData

When there are many many points flooding in, x-axis labels are overwhelmed. It would be nice if it could be decoupled. For example, accepting a function to convert point data to labels, and accept a parameter to control the density of labels.

This might be a breaking API change.

Screenshot 2024-03-09 at 11 39 35 AM

I wish the density of grid lines could be configured as well.

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

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.

Support Compose Multiplatform?

Would you support Compose Multiplatform?

I just have a quick look on the source code. It seems the core does not depend on Android-specific stuffs, so it might not be difficult. If you have no time, would you accept a PR?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.