Added a comment

pull/1319/head
Jakub Kalinowski 4 years ago
parent 5527fd3514
commit dff0ed6c11

@ -223,7 +223,9 @@ class FrequencyChart : ScrollableChart {
}
private fun drawMarker(canvas: Canvas, rect: RectF?, value: Int?) {
// value can be negative when the entry is skipped
val valueCopy = value?.let { max(0, it) }
val padding = rect!!.height() * 0.2f
// maximal allowed mark radius
val maxRadius = (rect.height() - 2 * padding) / 2.0f

Loading…
Cancel
Save