ChartsOrg / ChartsOrg/Charts

On the issue of LineChartView stuttering

Open
#5,128 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

## What did you do?

Hello, I ran through your project and discovered an issue:
In the demo of Line Chart, I drag the first slider to the maximum value of 1500, and then set
"set1.mode=LineChartModeHorizontalBezier".

## What did you expect to happen?

After zooming in and moving, the chart will become too laggy

## What happened instead?

After zooming in and moving, the chart will become too laggy

## DGCharts Environment

**DGCharts version/Branch/Commit Number:**
**Xcode version:** 14.3
**Swift version:**
**Platform(s) running DGCharts:**
**macOS version running Xcode:**

## Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the demo's Line Chart by moving the first slider to 1500, zooming, and using set1.mode=LineChartModeHorizontalBezier. Start at LineChartView and trace the interaction path; done means the same zoom-and-move scenario no longer becomes excessively laggy.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.