Skip to content
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

Open
ankushg opened this issue Jul 31, 2013 · 4 comments
Open

PieGraph not appearing like in example screenshot #2

ankushg opened this issue Jul 31, 2013 · 4 comments

Comments

@ankushg
Copy link

ankushg commented Jul 31, 2013

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.

Weird PieGraph
vs.
Expected PieGraph

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?

@Androguide
Copy link
Owner

That's weird, I need to investigate that.
Do you have the same issue when building the example app?

@emanzanoengisoft
Copy link

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.

@mbialas
Copy link

mbialas commented Oct 7, 2013

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.

@mbialas
Copy link

mbialas commented Oct 8, 2013

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??)

menghang pushed a commit to menghang/HoloGraphLibrary that referenced this issue Apr 22, 2014
Selection second bar in the example will highlight 1st and 2nd bars
menghang pushed a commit to menghang/HoloGraphLibrary that referenced this issue Apr 22, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants