Skip to content

How to get pie chart percentage alone  #3580

@Saravanakumar46

Description

@Saravanakumar46

mpchart 2

Hi,
I want to show the pie chart label and the percentage like in the image. I tried with this to show the label outside with the below code. But it has black line how to hide that line also.

dataSet.setXValuePosition(PieDataSet.ValuePosition.OUTSIDE_SLICE);
dataSet.setValueLinePart1OffsetPercentage(80.f);
dataSet.setValueLinePart1Length(0.2f);
dataSet.setValueLinePart2Length(0.4f);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions