Giter VIP home page Giter VIP logo

Comments (2)

hi-manshu avatar hi-manshu commented on June 7, 2024

Hey @arijit4 ,
What you mean by clips the circle, mind attaching some screenshot withmore detail? thanks

from charty.

arijit4 avatar arijit4 commented on June 7, 2024

Sorry @hi-manshu for not being clear enough.

The circles/blobs on points (don't know what to call itπŸ₯²) get clipped by the upper edge.
I'm using padding as a workaround.

LineChart(
    modifier = Modifier
        .fillMaxSize()
        .padding(16.dp),
    lineData = entries,
    color = MaterialTheme.colorScheme.secondary,
    chartDimens = ChartDimens(20.dp)
)

It solves the above-mentioned issue. But the x axis values (15, 16, 17... in the screenshot) still get clipped. Again the dimmed lines parallel to x-axis are not centered according to the y-axis values. This is why the points with yValue = 10 looks less than 10 in the graph.

Couldn't find any doc for ChartDimens. But adding it helped :)

msg1693893067-15752

Hope the issue's a bit clearer now. Thanks!

from charty.

Related Issues (20)

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.