Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ open class BarEntry : Entry {
}
}

override fun toString(): String {
return super.toString() + " yVals=" + yVals.contentToString()
}

companion object {
/**
* Calculates the sum across all values of the given stack.
Expand Down
7 changes: 6 additions & 1 deletion chartLib/src/main/kotlin/info/appdev/charting/data/Entry.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package info.appdev.charting.data

import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Parcel
import android.os.ParcelFormatException
import android.os.Parcelable
Expand Down Expand Up @@ -100,7 +101,11 @@ open class Entry : BaseEntry, Parcelable, Serializable {
* returns a string representation of the entry containing x-index and value
*/
override fun toString(): String {
return "Entry x=$x y=$y"
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
"${this.javaClass.typeName.substringAfterLast(".")} x=$x y=$y"
} else {
"Entry x=$x y=$y"
}
}

override fun describeContents(): Int {
Expand Down
Loading