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

Feature request: Overdraw #97

Open
mtotschnig opened this issue Oct 8, 2024 · 0 comments
Open

Feature request: Overdraw #97

mtotschnig opened this issue Oct 8, 2024 · 0 comments

Comments

@mtotschnig
Copy link
Contributor

I would like to represent the situation where a certain value outpasses 100%. At the moment I am representing this with two sections:

listOf(
  DonutSection(
      amount = (value - 100).toFloat(),
      name = "excess",
      color = excessColor
  ),
  DonutSection(
      amount = (200 - value).toFloat(),
      name = "hundred",
      color = valueColor
  )
)

grafik

But this does not animate nicely if the value gets over the limit, e.g. from 90 to 110.

Ideally I would be able to create one section with value 110, define an color for the excess portion, and see the value animate over the 100% bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants