ChartsOrg / ChartsOrg/Charts

Misleading type? ChartData vs LineChartData

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

Description

Not sure if this is a valid issue, be good to get some opinions.

But if you create a ChartData object with a dataset and set the data property with this object on the LineChartView, the LineChartView successfully renders the legend and the axis but does not draw the line. Took me a while to spot the issue, which was that I should be using LineChartData, once I did this, it drew the data.

Feels like this could be an assertion failure in the setter for the LineChartView data setter? As there is no benefit to being able to set a ChartData object here that I can tell?

Interested to get thoughts.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue described with ChartData and LineChartData assigned to LineChartView.data. Inspect the LineChartView data setter and determine the intended handling for an incompatible ChartData object. Done means the behavior is explicitly validated, with a corresponding test or clarified API behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.