删除点上的Y标签

时间:2017-12-03 23:09:09

标签: android mpandroidchart

如何删除圆点上的Y值? 或者只是将颜色更改为白色。

enter image description here

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)

1 个答案:

答案 0 :(得分:1)

删除值:

dataSet.setDrawValues(false);

更改颜色:

dataSet.setValueTextColor(Color.WHITE);