Skip to content

Commit

Permalink
Pop-up text fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
furkanaskin committed Aug 19, 2020
1 parent 9c18f2a commit 6f0f9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/com/faskn/lib/ClickablePieChart.kt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class ClickablePieChart @JvmOverloads constructor(
val halfRadius = rectF!!.centerX()

popupView.findViewById<TextView>(R.id.textViewPopupText).text =
"${slices[index].dataPoint} $popupText"
"${slices[index].dataPoint.toInt()} $popupText"
ImageViewCompat.setImageTintList(
popupView.findViewById(R.id.imageViewPopupCircleIndicator),
ColorStateList.valueOf(ContextCompat.getColor(context, slices[index].color))
Expand Down

0 comments on commit 6f0f9ef

Please sign in to comment.