|
|
@@ -1,5 +1,6 @@
|
|
|
package com.yingyang.workbenches.brainability
|
|
|
|
|
|
+import android.graphics.Color
|
|
|
import android.graphics.Typeface
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
|
import androidx.recyclerview.widget.RecyclerView
|
|
|
@@ -75,6 +76,7 @@ class BrainAbilityFragment :
|
|
|
setColor(index, lineDataSet)
|
|
|
lineDataSet.setDrawCircleHole(false)
|
|
|
lineDataSet.setDrawCircles(false)
|
|
|
+ lineDataSet.setDrawValues(false)
|
|
|
lineDataSet.mode = LineDataSet.Mode.CUBIC_BEZIER
|
|
|
lineDataSet.label = ""
|
|
|
lineDataSet.form = Legend.LegendForm.NONE
|
|
|
@@ -145,6 +147,8 @@ class BrainAbilityFragment :
|
|
|
binding.lineChart.extraBottomOffset = 20f
|
|
|
binding.lineChart.extraRightOffset = 30f
|
|
|
binding.lineChart.extraLeftOffset = 10f//间距
|
|
|
+ binding.lineChart.setNoDataText("暂无数据")
|
|
|
+ binding.lineChart.setNoDataTextColor(Color.BLACK)
|
|
|
//获取柱状图的X轴
|
|
|
val xAxis: XAxis = binding.lineChart.xAxis
|
|
|
//下面两个是获取Y轴 包括左右
|