ChartView

abstract class ChartView<Model> @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout

Displays a CartesianChart.

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Properties

Link copied to clipboard
abstract var model: Model?

Houses the chart data.

Link copied to clipboard

Whether to display an animation when the chart is created. In this animation, the value of each chart entry is animated from zero to the actual value.

Functions

Link copied to clipboard
open override fun addView(child: View, index: Int, params: ViewGroup.LayoutParams?)
Link copied to clipboard
open override fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
open override fun onViewRemoved(child: View?)
Link copied to clipboard
fun setAnimationDuration(durationMillis: Long)

Sets the duration (in milliseconds) of difference animations.

Link copied to clipboard

Sets the Interpolator for difference animations.

Link copied to clipboard
fun setPlaceholder(view: View?, params: FrameLayout.LayoutParams? = null)

Updates the placeholder, which is shown when no chart data is available.