ChartView

abstract class ChartView<M> @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

Whether to run an initial animation when the ChartView is created.

Link copied to clipboard
abstract var model: M?

Houses the chart data.

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.