CircleZone

data class CircleZone(center: Point, radius: Double) : Zone

A Zone shaped as a circle, used to indicate interactive zones in a Chart.

See also

Constructors

CircleZone
Link copied to clipboard
common
fun CircleZone(center: Point, radius: Double)

Functions

contains
Link copied to clipboard
common
open override fun contains(point: Point): Boolean
Does this Zone contains the given Point?
getAnchorPoint
Link copied to clipboard
common
open override fun getAnchorPoint(layoutPosition: LayoutPosition): Point
Define an "anchor point" at the given LayoutPosition, useful to place labels or tooltips over a Zone.

Properties

bounds
Link copied to clipboard
common
open override val bounds: RectGeom
The bounds of this Zone as a Rect.
center
Link copied to clipboard
common
open override val center: Point
The geometric center coordinates of this Zone.
radius
Link copied to clipboard
common
val radius: Double
This Zone's circle radius