-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PieGraph not appearing like in example screenshot #2
Comments
That's weird, I need to investigate that. |
I have the same issue, but it's weird it doesn't happen on some devices. I've tested on a nexus 4 and nexus 10 tablet working fine and looking good, but in a galaxy tab II and on a xperia tipo looks like the image ankushg posted. I've been looking into source code but I can't find where is the bug. |
You need to call setThickness on the PieGraph, with a smaller value. The default value is 50, which is too thick for the height/width of your graph. |
A solution for the project could be that in the onDraw or onLayout method of PieGraph, retrieve the height/width and lower the thickness if it is past the threshold (half of the height/width??) |
Selection second bar in the example will highlight 1st and 2nd bars
…4720614469 (pull request Androguide#2) Edit to avoid conflict
In the example screenshot for the PieGraph, the slices are shown as being equally thick throughout. When I use the PieGraph as shown in the example, I get a chart that has slices with the proper arc lengths, but with the shaded portion simply being a straight line connecting the endpoints of the arc.
vs.
Additionally, is it possible to have the slices actually be slices (i.e., go all the way into the middle) instead of thick line segments? How would that be accomplished?
The text was updated successfully, but these errors were encountered: