Drawing multiple Highlighters with equal distance on Line Chart
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I need some custom behavior w.r.t. Line Charts regarding hightlighters. What I need is to;
1. Add a highlighter when the user double taps on the LineChart
2. Afterwards if the user touches and drags on the chart, draw multiple highlighters in both the sides of the reference highlighter added earlier at equal distance.
I have overriden the `doubleTapGestureRecognized` method of `BarLineChartViewBase` class which was earlier used to zoom and hence achieved the 1st result.
For the 2nd I'm aware I have to take a different array but I'm unable to figure out where these calculations should happen and how I can then render it.
Another tap will dismiss all the drawn highlighters and I have figured out how to do that. @liuxuan30 Can you please help on the 2nd question.
Contributor guide
Research direction
Start by tracing BarLineChartViewBase and the overridden doubleTapGestureRecognized path used for the LineChart. Then inspect how highlighters are stored, calculated, and rendered during touch-and-drag interactions. Done means a double tap creates a reference highlighter, dragging draws equally spaced highlighters on both sides, and another tap dismisses them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data-visualization, mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100