dp

fun dp(screenWidth: Int, time: Long): Dp

Calculates the needed Dp depending on the amount of time being plotted.

Parameters

time

in seconds