ChartConfig

interface ChartConfig : Font, Stroke, ChartBasicConfig, Config<ChartConfig>

The ChartConfig is the central point of the configuration that holds a lot of configuration properties.

Some of them are defined as root configuration properties. Other are grouped into specific scoped configurations (cursor, events, mark, selection, tooltip, zoom, etc.)

Types

Companion
Link copied to clipboard
common
object Companion
This is a library of default configurations, you can create your own configuration or use one of these.

Functions

chart
Link copied to clipboard
common
abstract fun chart(init: ChartBasicConfig.() -> Unit)
The ChartBasicConfig initialization lambda, use it to customize your Chart.
cursor
Link copied to clipboard
common
abstract fun cursor(init: CursorConfig.() -> Unit)
The CursorConfigImpl initialization lambda, use it to customize your CursorImpl.
deepCopy
Link copied to clipboard
common
abstract fun deepCopy(): ChartConfig
Provide a deep copy of the configuration object.
events
Link copied to clipboard
common
abstract fun events(confEvents: EventConfig.() -> Unit)
The EventConfig initialization lambda, use it to customize your events behaviors.
legend
Link copied to clipboard
common
abstract fun legend(init: LegendConfig.() -> Unit)
The LegendConfig initialization lambda, use it to customize your Legend.
mark
Link copied to clipboard
common
abstract fun mark(init: MarkConfig.() -> Unit)
The MarkConfig initialization lambda, use it to customize your Marks.
selection
Link copied to clipboard
common
abstract fun selection(init: SelectionConfig.() -> Unit)
The SelectionConfig initialization lambda, use it to customize style your selection layer.
title
Link copied to clipboard
common
abstract fun title(init: TitleConfig.() -> Unit)
The TitleConfig initialization lambda, , use it to customize your Title.
tooltip
Link copied to clipboard
common
abstract fun tooltip(init: TooltipConfig.() -> Unit)
The TooltipConfig initialization lambda, , use it to customize your Tooltip.
xAxis
Link copied to clipboard
common
abstract fun xAxis(init: AxisConfig.() -> Unit)
The X-AxisConfig initialization lambda, use it to customize your X Axis.
yAxis
Link copied to clipboard
common
abstract fun yAxis(init: AxisConfig.() -> Unit)
The Y-AxisConfig initialization lambda, use it to customize your Y Axis.
zoom
Link copied to clipboard
common
abstract fun zoom(init: ZoomConfig.() -> Unit)
The ZoomConfig initialization lambda, use it to customize your Zoom.

Properties

backgroundColor
Link copied to clipboard
common
abstract var backgroundColor: Color
The background color for the Chart, this color must have a alpha channel value of 100%.
cursor
Link copied to clipboard
common
abstract val cursor: CursorConfig
The cursor configuration
events
Link copied to clipboard
common
abstract val events: EventConfig
The events configuration
fontColor
Link copied to clipboard
common
abstract var fontColor: Color
The font Color.
fontFamily
Link copied to clipboard
common
abstract var fontFamily: FontFamily
The font family (FontFamily).
fontSize
Link copied to clipboard
common
abstract var fontSize: Double
The font size.
fontStyle
Link copied to clipboard
common
abstract var fontStyle: FontPosture
The font posture (FontPosture): italic or normal.
fontWeight
Link copied to clipboard
common
abstract var fontWeight: FontWeight
The font weight (FontWeight): bold or normal.
legend
Link copied to clipboard
common
abstract val legend: LegendConfig
The legend configuration
mark
Link copied to clipboard
common
abstract val mark: MarkConfig
The global mark configuration
numberLocale
Link copied to clipboard
common
abstract var numberLocale: Locale
The number formatting locale
padding
Link copied to clipboard
common
abstract var padding: Padding
The Padding for the Chart.
performanceMode
Link copied to clipboard
common
abstract var performanceMode: Boolean
Enable "performance mode": better Chart reactivity even with a lot of data but requires more graphic memory.
selection
Link copied to clipboard
common
abstract val selection: SelectionConfig
The selection configuration
strokeColor
Link copied to clipboard
common
abstract var strokeColor: Color?
The stroke Color, use null for no stroke.
strokeWidth
Link copied to clipboard
common
abstract var strokeWidth: Double?
The stroke thickness, null for no stroke.
timeLocale
Link copied to clipboard
common
abstract var timeLocale: Locale
The date formatting locale
title
Link copied to clipboard
common
abstract val title: TitleConfig
The title configuration
tooltip
Link copied to clipboard
common
abstract val tooltip: TooltipConfig
The tooltip configuration
x
Link copied to clipboard
common
abstract val x: AxisConfig
The x axis configuration
y
Link copied to clipboard
common
abstract val y: AxisConfig
The y axis configuration
zoom
Link copied to clipboard
common
abstract val zoom: ZoomConfig
The zoom configuration