FadingEdges
fun FadingEdges(startEdgeWidth: Dp = FadingEdgesDefaults.edgeWidth, endEdgeWidth: Dp = startEdgeWidth, visibilityThreshold: Dp = FadingEdgesDefaults.visibilityThreshold, visibilityEasing: Easing = FadingEdgesDefaults.visibilityEasing): FadingEdges
FadingEdges applies a horizontal fade to the edges of the chart area for scrollable charts. This effect indicates that there’s more content beyond a given edge, and the user can scroll to reveal it.
Parameters
startEdgeWidth
the width of the fade overlay for the start edge (in dp).
endEdgeWidth
the width of the fade overlay for the end edge (in dp).
visibilityThreshold
the scroll distance over which the overlays fade in and out (in dp).
visibilityEasing
used for the fading edges’ fade-in and fade-out animations. This is a mapping of the degree to which visibilityThreshold has been satisfied to the opacity of the fading edges.