Code Monkey home page Code Monkey logo

donut's People

Contributors

eldon922 avatar matejsemancik avatar michalsrutek avatar okalman avatar skywall avatar sumeramartin avatar syntey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

donut's Issues

Rendering issues

Hi I want to create segmented donut stepper, I was able to configure it according to my needs but the The donut rendering has un-needed artifacts in transparent sections. See the screen shot below

image

Dataset Click listener not available.

I am currently using v2.2.2 of this library and there is no click listener to detect which dataset was clicked. do I have to use a new version or what?

Use the library with minSdkVersion 19

I want to use this library, but my app has minSdkVersion 19. I force it using below code. What's the thing will be broken? or are there an alternative way to use this library in app that has minSdkVersion 19?
<uses-sdk android:minSdkVersion="19" tools:overrideLibrary="app.futured.donut" />

Question: Any way to find midpoint of a section?

First off all, thank you for this fantastic library and all the time and effort that you have put into it!

I've been looking into the possibility of adding optional drawables to each section, and specifically I've been trying for a while now to figure out a good way to find the midpoint coordinates of each painted section for the placement of the drawables but have been unable to find a reliable way to do so.

You wouldn't happen to have any pointers on how best to go about doing so?

AS 4.0 stable release cannot build this project.

It shows

Unsupported method: AndroidArtifact.getBuildConfigFields().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.

Overlapping sections

Latest section color is on top of other sections but it can be false yo show in UI sometimes value of last section can be half of the section before the last one but color length almost equal to each other

Colour of Donut Chart Not Suitable

there is 2 colour in donut section, the first value is 142.063.000 and the second value is 1.404.000 but ini donut chart only 1 colour
Warna chart payment status belum sesuai

Half Donut Problem

I have a half donut but Constrait take up space like full donut. Could you help me about it ?
Screen Shot 2023-10-06 at 10 59 29

Donut Depency causes the App not to build

Hello! I'm a newbie when it comes to Android Studio and how it fully works, sorry if this is my fault! Any feedback or help would be appreciated if so.

When trying to install the dependency like explained on the README, I get around 7 failures. What I did was add the "Implementation" line inside the "dependencies" area (build.grade (Module)) and do a simple build to test if things would run without problems. I only added that line, nothing more.

FAILURE: Build completed with 7 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find app.futured.donut:donut:unspecified.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/app/futured/donut/donut/unspecified/donut-unspecified.pom
       - https://repo.maven.apache.org/maven2/app/futured/donut/donut/unspecified/donut-unspecified.pom
     Required by:
         project :app

For simplification purposes, I'll only post this one failure since the others are very similar to this one.

Thank you for the time.

DonutSection click

How can i get DonutSection chart click and understand? I have different DonutSection area and i need to get position which DonutSection

Colors in compose version not being rendered correctly

Hi,

I am facing an issue and after hours of playground testing I can't tell if I am missing something or if the behaviour between the compose and non-compose version is indeed different. I can't tell if this is a bug or not.

Please refer to the following gist:
https://gist.github.com/Stjin/807c430a25adebef76fae8a039cbc2b5

I have created an application with 2 activities

  • 1 compose activity
  • 1 native/xml activity

I implemented both the compose as well as the non-compose version of the donut library and recreated 2 identical setups.
However the end results is differently rendered.
It looks like the compose version reverses the colors?

Compose Compose Native XML




Hope you can help me out ☺

Gradient support for each progress line

Is it possible to add gradients to each line? e.g. first section should start with a color and end with another color, and section 2 takes a set of other colors, etc.

Animation configuration

Allow developer to choose if animations should be applied, if yes, then allow him to provide custom interpolator and animation duration

Create PUBLISHING.md

After the library migrates to mavenCentral, we might need to create some sort of publishing guide, as the library properties are needed to be changed in gradle.properties file before each release.

Ques: GapWidth between sections

Thanks for this amazing library.
Is it possible to control gap width between each section?

Currently the gap is for the overall chart I believe. Is there any way I can add that gap in between sections?

Something like this
image

Not Support Compose androidx.compose

my app use androidx.compose version 1.0.4 it can not use donut library because donut library require androidx.ui

please update change androidx.ui to androidx.compose

Thanks for this amazing library.

First DonutSection

The first section always occupies more, another section of similar amount. Can I change that somehow? Thank you earlier.

Consider renaming basic data structures

  • DonutDataset - currently represents one item in graph - not ideal to call this ...set
  • DonutData - currently contains list of DonutDatasets and graph parameters - not ideal call this data because it's both raw data and configuration / parameters
  • DonutConfig - seems ok

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.