ChartsOrg / ChartsOrg/Charts

The edge points are clipped

Open
#5,216 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/user-attachments/assets/e87b9974-fbab-4e68-88e4-eb0a6aa04c33)

## 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](https://github.com/user-attachments/assets/27544ddf-3e54-42a1-8dc8-cab7e23859d4)

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.