Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Line Chart values which is on the line on Chart

I've created a line chart by using Charts. I need to remove data points values (Which is on the line). Is there any accessible parameter to disable this? Thanks

enter image description here

like image 835
Chathuranga Silva Avatar asked Feb 01 '26 23:02

Chathuranga Silva


2 Answers

if you want to remove dots too:

let set = LineChartDataSet(values: yVals, label: "Y")
set.drawValuesEnabled = false
set.drawCirclesEnabled = false
like image 74
Alex Avatar answered Feb 03 '26 13:02

Alex


You can use the setDrawValues function. It enables/disables drawing values.

 let data = LineChartData(dataSet: set1)
 data.setDrawValues(false)
like image 33
KingHodor Avatar answered Feb 03 '26 13:02

KingHodor