Skip to content

The edge points are clipped #5216

Open
Open
@Jolin-Zhang

Description

@Jolin-Zhang

image

What did you do?

ℹ Please replace this with what you did.

   lineChart.leftAxis.axisMaximum = 42;
   lineChart.leftAxis.axisMinimum = -15;
   [lineChart setExtraOffsetsWithLeft:0 top:58 right:0 bottom:30];

And I set the data as follows:
image

ℹ Please replace this with what you expected to happen.

When x is 3.0,y is 42.0 ,the circle was out of content rect.

image

y is 57.999999999999986 , and contentRect.origin.y is 58.0 ,so the circle point is skipped.

How can I do to avoid this happened

What happened instead?

ℹ Please replace this with of what happened instead.

DGCharts Environment

DGCharts version/Branch/Commit Number:
**Xcode version:16.2
Swift version:
Platform(s) running DGCharts: iPhoneXs Max
macOS version running Xcode:

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions