ChartsOrg/Charts

Labels are blinking on scroll

開放

#3,714 建立於 2018年10月25日

 (6 則留言) (0 個反應) (0 位負責人)Swift (5,993 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (28,010 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hi guys,

I have some strange behaviour that I did not met before My labels are blinking on scroll, see attached video in zip

Even set up chartView.autoScaleMinMaxEnabled = false not helped to fix it

Here my chart common setup:


chartView.noDataTextColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
        chartView.noDataText = "The DATA WAS NOT FOUND"
        chartView.chartDescription?.text = ""
        chartView.scaleYEnabled = false
        chartView.drawGridBackgroundEnabled = false
        chartView.legend.enabled = false
        chartView.highlightPerTapEnabled = false
        chartView.pinchZoomEnabled = false
        chartView.setScaleEnabled(false)
        chartView.autoScaleMinMaxEnabled = false

        chartView.xAxis.enabled = true
        chartView.xAxis.axisMinimum = 0
        chartView.xAxis.drawLabelsEnabled = true
        chartView.xAxis.drawGridLinesEnabled = false
        chartView.xAxis.granularityEnabled = true
        chartView.xAxis.granularity = 1
        chartView.xAxis.drawAxisLineEnabled = true
        chartView.xAxis.labelPosition = .bottom

       chartView.setVisibleXRangeMaximum(15)

I did not find any opened issue for such behaviour, so any help will be appreciated

label blinking problem.mp4.zip

貢獻者指南