MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How to draw a piechart in horizontal

Open udayanem opened this issue 8 years ago • 2 comments

Is there a chart that looks like PieChart and rather than circle, numbers should be displayed in horizontal bar?

In PieChart, we display numbers in Circle. But how can i display them in single bar(horizontal)?

Anybody can help here?

udayanem avatar Feb 13 '18 07:02 udayanem

Hi,

Can anybody look into this. I want a horizontal bar for this below PieChart image

Rather than a PieChart, i want the same chart horizontally. I tried horizontal bar, but having trouble as it is showing fractions in X and Y- axis.

I need exactly the same chart, just horizontal.

udayanem avatar Feb 19 '18 07:02 udayanem

Well, the point of a Pie chart is to draw it in a circle.

A horizontal stacked bar chart will do exactly what you are asking. You can easily disable the axis rendering, too. Check out the official documentation, it should have exactly what you are looking for. Also, there is an example activity in the example app that uses horizontal stacked bar charts, so look at that too.

almic avatar May 09 '18 00:05 almic