Skip to content

Entry icon not showing, Please Update  #2

@Mukesh9166

Description

@Mukesh9166

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions