I'm using charts library to show realtime linechart when i add new entry of data at that time graph flicker, please help me to stop flickering at new entry of data.
let currentDataSet = self.graphView.data?.dataSets[0]
let xIndex : Int = currentDataSet?.entryCount ?? 0
let entry = ChartDataEntry(x: Double(xIndex), y: Double(data.reading) ?? 0)
_ = currentDataSet?.addEntry(entry)
self.graphView.notifyDataSetChanged()
self.graphView.moveViewToX(Double(xIndex))