This guide details the terms used for every visual element, note that these elements are tightly tied to the chart's DSL, so knowing them helps you build charts faster.

The chart

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a979afba-a333-4a38-9f58-e828a4932c9d/Untitled.png

The Charts.kt DSL makes Chart the root element of every visualization.

//run highlight-only=true
chart(data) {

		// all your chart's code goes here

}

The mark

A Mark is a way to represent data, for example, Line, Column, Area... In the previous image, the mark is a PlotMark, a mark used to create a scatter plot.

There can be several marks in a Chart like in this image, a BarMark (in blue) and a LineMark (in black):

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e4598e77-05db-4eef-8013-25ef591dcd6a/dual-marks.png

//run highlight-only=true
private fun VizContainer.createChart(data: List<Record>): Chart<Record> =
    chart(data) {
				(...)

				// your first "mark" is a BarMark
				bar(dimension1, dimension2)

				// your second "mark" is a LineMark, note that it share the same X-dimension
				line(dimension1, dimension3)
		}

The marker

The marker is the visual representation that a Mark draws to display a single element.

In a scatterplot, the marker would be a single "plot", for a bubble chart, each unique bubble would also be called a marker.

Generally speaking, the task of a mark is to draw markers for every record in your dataset.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/515c1886-bd1c-4532-a5c7-e5990a5c010d/markers.png

The axis

The axis is composed of several parts you can customize: