when Zoomed In ,The x-axis shows the duplicate values.Getting correct value initially ,but when start to zoom graph, some values on the X-axis becomes identical
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
> ℹ Please fill out this template when filing an issue.
> All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.
>
> Per our [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md), we use GitHub for
> bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag [`ios-charts`.](https://stackoverflow.com/questions/tagged/ios-charts)
>
> Please remove this line and everything above it before submitting.
* [x] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md).
## What did you do?
self.lineChartView.setVisibleXRange(minXRange: 2, maxXRange: Double(dataPoints.count))
self.lineChartView.xAxis.granularityEnabled = true
self.lineChartView.xAxis.granularity = 1
## What did you expect to happen?
ℹ Please replace this with what you expected to happen.
## What happened instead?
ℹ Please replace this with of what happened instead.
## Charts Environment
**Charts version/Branch/Commit Number:**
**Xcode version:**
**Swift version:**
**Platform(s) running Charts:**
**macOS version running Xcode:**
## Demo Project
ℹ Please link to or upload a project we can download that reproduces the issue.
Contributor guide
Research direction
Start by reproducing the issue in an iOS Charts demo using setVisibleXRange with xAxis granularity enabled, then inspect the zoom behavior and x-axis label generation. Done means zooming no longer produces duplicate x-axis values; the issue provides no named source file or test to target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- data-visualization, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100