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
Asked
Active
Viewed 1,944 times
3
-
*Charts* is open source, go to the correspondingfile.swift and comment the code that labels the points. – Rizwan Dec 13 '18 at 08:40
2 Answers
4
if you want to remove dots too:
let set = LineChartDataSet(values: yVals, label: "Y")
set.drawValuesEnabled = false
set.drawCirclesEnabled = false

Alex
- 448
- 6
- 11
3
You can use the setDrawValues function. It enables/disables drawing values.
let data = LineChartData(dataSet: set1)
data.setDrawValues(false)

KingHodor
- 537
- 4
- 17