如何删除圆点上的Y值? 或者只是将颜色更改为白色。
val lineData = LineData(dataSet)
chart.setNoDataText("Nenhum treino computado")
chart.setDrawBorders(false)
chart.data = lineData
chart.description = desc
chart.setGridBackgroundColor(R.color.graphGride)
chart.setDrawGridBackground(false)
chart.legend.textColor = ActivityCompat.getColor(this, R.color.graphLabel)
chart.axisLeft.gridColor = ActivityCompat.getColor(this, R.color.graphLabel)
chart.xAxis.position = XAxis.XAxisPosition.BOTTOM
chart.xAxis.textColor = ActivityCompat.getColor(this, R.color.graphLabel)
chart.xAxis.axisLineColor = ActivityCompat.getColor(this, R.color.graphLabel)
chart.xAxis.setCenterAxisLabels(true)
答案 0 :(得分:1)
删除值:
dataSet.setDrawValues(false);
更改颜色:
dataSet.setValueTextColor(Color.WHITE);