-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Entry(i.toFloat(), arrRunningCbtData[i].cbt.toFloat(), icon)
private fun createCbtSet(): XFreeLineDataSet<XFreeLineChart> {
val colorResId = R.color.popup_bg_yellow
val color = mContext?.resources?.getColor(colorResId)
val set = XFreeLineDataSet(binding?.chartCbt!!, null, "Cbt Live Data")
set.axisDependency = YAxis.AxisDependency.LEFT
set.setDrawCircles(false)
set.lineWidth = 3f
set.circleRadius = 4f
set.fillAlpha = 100
if (color != null) {
set.fillColor = color
set.color = color
}
set.mode = LineDataSet.Mode.CUBIC_BEZIER
set.highLightColor = Color.rgb(244, 117, 117)
set.valueTextColor = Color.WHITE
set.valueTextSize = 12f
set.setDrawValues(false)
set.setDrawIcons(true)
cbtGraphLineData = set
return set
}
Metadata
Metadata
Assignees
Labels
No labels