Skip to content

Draw MyMarkerView at postion of values in barchart negative #4838

@HaiPham94

Description

@HaiPham94

abababababa

I try to draw markerview at to values position in bartchart negative. But it wrong postion.
In MyMarkerView extends MarkerView, I try to override fun :
@OverRide
public MPPointF getOffset() {
if (offY >= 0) { //value of Entry.getY
return new MPPointF(-(getWidth() / 2), -getHeight());
} else {
return new MPPointF(-(getWidth() / 2), getHeight());
}
}

But it not working! Please help me!

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