Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineChartView decrease height if add many LineChartDataSets #4122

Closed
1 task done
teymur291994 opened this issue Aug 26, 2019 · 1 comment
Closed
1 task done

LineChartView decrease height if add many LineChartDataSets #4122

teymur291994 opened this issue Aug 26, 2019 · 1 comment

Comments

@teymur291994
Copy link

teymur291994 commented Aug 26, 2019

What did you do?

ℹ Display lineChartView, with many lines. One line is one LineChartDataSet.

What did you expect to happen?

ℹ I expect that lineChartView not change height. For example if add 500 lineChartDataSets the height won't be change.

LineChartView

What happened instead?

ℹ When add more lineChartDataSets the height will be decrease.

Untitled

Charts Environment

**Charts version/Branch/Commit Number:3.3.0
**Xcode version:10.3
**Swift version:5
**Platform(s) running Charts:iOS 12.3.1
**macOS version running Xcode:macOS Mojave 10.14.4

Demo Project

ℹ I download Charts-3.3.0, and add to function" setDataCount(_ count: Int, range: UInt32)",
in class LineChart2ViewController:

var dataSets = [LineChartDataSet]()
        var dataEntry = [ChartDataEntry]()
for _ in 0...500 {

            let interval = ChartDataEntry(x: Double(5), y: Double(5))
            dataEntry.append(interval)
            let dataSet = LineChartDataSet(entries: dataEntry, label: "")
            dataSets.append(dataSet)
        }
let data = LineChartData(dataSets: dataSets)

So you can launch app, then select Line Chart (Dual YAxis) and see same problem
Charts-3.3.0.zip

@teymur291994
Copy link
Author

Find problem, need set that legend is custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant