Package-level declarations

Types

Link copied to clipboard
fun interface AutoScrollCondition

Defines when an automatic scroll should be performed.

Link copied to clipboard

A chart based on a Cartesian coordinate plane, composed of CartesianLayers.

Link copied to clipboard
open class CartesianChartView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : ChartView<CartesianChartModel>

Displays a CartesianChart.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class FadingEdges(startWidthDp: Float = FADING_EDGE_WIDTH_DP, endWidthDp: Float = FADING_EDGE_WIDTH_DP, visibilityThresholdDp: Float = FADING_EDGE_VISIBILITY_THRESHOLD_DP, visibilityInterpolator: TimeInterpolator = AccelerateDecelerateInterpolator())

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.

Link copied to clipboard
sealed interface Scroll

Represents a CartesianChart scroll value or delta.

Link copied to clipboard
class ScrollHandler(scrollEnabled: Boolean = true, initialScroll: Scroll.Absolute = Scroll.Absolute.Start, autoScroll: Scroll = initialScroll, autoScrollCondition: AutoScrollCondition = AutoScrollCondition.Never, autoScrollInterpolator: TimeInterpolator = AccelerateDecelerateInterpolator(), autoScrollDuration: Long = Animation.DIFF_DURATION.toLong())

Houses information on a CartesianChart’s scroll value. Allows for scroll customization and programmatic scrolling.

Link copied to clipboard
fun interface Zoom

Represents a CartesianChart’s zoom factor.

Link copied to clipboard
class ZoomHandler(zoomEnabled: Boolean = true, initialZoom: Zoom = Zoom.max(Zoom.fixed(), Zoom.Content), minZoom: Zoom = Zoom.Content, maxZoom: Zoom = Zoom.max(Zoom.fixed(Defaults.MAX_ZOOM), Zoom.Content))

Houses information on a CartesianChart’s zoom factor. Allows for zoom customization.