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

Piechart with vertical legend #840

Closed
evixar opened this issue Mar 13, 2016 · 4 comments
Closed

Piechart with vertical legend #840

evixar opened this issue Mar 13, 2016 · 4 comments

Comments

@evixar
Copy link

evixar commented Mar 13, 2016

Hi,

I'm trying to display the legend of a pie chart vertically but I can't find any option to do it.

It looks like Google Analytics app uses MPAndroidChart (it looks very familiar) and their legend below a pie chart is shown vertically.

Is there anyway to do this ?

Regards

@liuxuan30
Copy link
Member

public enum ChartLegendPosition: Int
{
    case RightOfChart
    case RightOfChartCenter
    case RightOfChartInside
    case LeftOfChart
    case LeftOfChartCenter
    case LeftOfChartInside
    case BelowChartLeft
    case BelowChartRight
    case BelowChartCenter
    case AboveChartLeft
    case AboveChartRight
    case AboveChartCenter
    case PiechartCenter
}

there is no one good to you? I don't know what you mean vertically

@Tj3n
Copy link

Tj3n commented Mar 18, 2016

What he meant is the same like the RightOfChart but in below (Vertical not Horizontal), im also looking for a way to do this but doesnt look really promise

@liuxuan30
Copy link
Member

if you want different position, you can change on your own. Or you can also make it a good implementation and file a PR :)

@danielgindi
Copy link
Collaborator

With the latest changes on master, you can do this by setting it to Center/Center, orientation = Horizontal, and wordWrapEnabled = true

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

No branches or pull requests

4 participants