这是代码片段
import UIKitimport Chartsclass ChartsVIEwController: UIVIEwController {@IBOutlet weak var lineChartVIEw: lineChartVIEw!overrIDe func vIEwDIDLoad() { super.vIEwDIDLoad() // Do any additional setup after loading the vIEw. let months = ["Jan","Feb","Mar","Apr","May","Jun"] let unitsSold = [20.0,4.0,6.0,3.0,12.0,16.0] setChart(months,values: unitsSold)}func setChart(dataPoints: [String],values: [Double]) { var dataEntrIEs: [ChartDataEntry] = [] for i in 0..<dataPoints.count { let dataEntry = ChartDataEntry(value: values[i],xIndex: i) dataEntrIEs.append(dataEntry) } let lineChartDataSet = lineChartDataSet(yVals: dataEntrIEs,label: "Units Sold") let lineChartData = lineChartData(xVals: dataPoints,dataSet: lineChartDataSet) lineChartVIEw.data = lineChartData}}解决方法 设置.setDrawCircles = NO;您的lineDataSet设置为禁用圆的绘制.
它在维基上……
https://github.com/PhilJay/MPAndroidChart/wiki/DataSet-classes-in-detail
以上是内存溢出为你收集整理的如何删除LineChartView iOS图表中的点全部内容,希望文章能够帮你解决如何删除LineChartView iOS图表中的点所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)