ChartsOrg / ChartsOrg/Charts

How to add multiple markers for each line in a MultiLine ChartView.

Open
#4,695 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

I am new to Charts library. I know it's a pretty famous and smart library.
We wanted to add a custom marker for each line presented in the Mutiline ChartView. is this possible? I know changing the marker for a single line is available. Can we also set individual markers for each line in a Multiline chart view?
Here is the design we wanted to achieve using charts. is this feasible with Charts?
Screenshot 2021-08-05 at 2 24 45 PM

Also we want to interact with the markers. do we have any delegation/call back mechanism for handling our logic.

Could some one please let us know how we can make use of Charts for implementing this? Any code snippets for achieving multiple markers in a ChartLineView would be great.

I am guessing that we can use Scatter chat but how can we add lines to the dots in scatter chat? which is the best option to achieve the above design using Charts?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing single-line marker customization in Charts and the marker delegation or callback mechanisms mentioned in the issue. Compare that behavior with MultiLine ChartView and Scatter Chart, including whether scatter points can retain connecting lines. Done means documenting or demonstrating a supported approach for per-line markers and marker interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile-dev
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.