ChartsOrg / ChartsOrg/Charts

The CandleStickChartView with autoScaleMinMaxEnabled = true so lag when drag

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

Description

I created a candlestick chart view. Below the code lines. But it's so lag when i drag to left or right direction. Help me fix it.
[Link Here](https://youtu.be/GTnt2jZG28k)
`candleChartView.delegate = self`
`candleChartView.chartDescription?.enabled = false`
`candleChartView.maxVisibleCount = 6`
`candleChartView.pinchZoomEnabled = false`
`candleChartView.legend.enabled = false`
`candleChartView.setScaleMinima(CGFloat(candleEntries.count / 50), scaleY: 1)`
`candleChartView.moveViewTo(xValue: Double(candleEntries.count), yValue: (candleEntries.last?.low)!, axis: YAxis.AxisDependency.right)`
`candleChartView.autoScaleMinMaxEnabled = true`

Contributor guide

Open the contributing guide

Research direction

Start at CandleStickChartView and reproduce the lag while dragging with autoScaleMinMaxEnabled enabled and the settings shown in the issue. Profile the drag and autoscaling path to identify the cause, then verify that dragging remains responsive without changing chart behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.