ChartsOrg / ChartsOrg/Charts

How do I implement tap recognizing for LineChart label

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

Description

Hi! I have got a wide LineChart with many entries. I want to let user tap (or better longtap/3D touch) on an entry to show modal card where user could edit data entry. I tried implementing `chartValueSelected` but the problem is that it runs even when user taps to scroll (i e taps without releasing finger) which is not how a button should behave. Is there any way to implement tap recognizing for LineChart label?

Contributor guide

Open the contributing guide

Research direction

Start by investigating the LineChart interaction around chartValueSelected and how scrolling gestures are handled. Determine whether tap, long-tap, or 3D Touch can be distinguished from scrolling, then verify that selecting an entry can trigger the requested editable modal card without firing during a scroll.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.