Sets the fading exponent for the exponential fade-out of trajectories. Opacity of each trajectory segment and stop position is calculated as exp(-tau * t), where t denotes the age of the segment (relative to the age of the whole trajectory, so it is bounded in [0, 1]), and tau is the exponent. Default is 0.
Binds data to the trajectory plot. Expected data format: array of objects with two properties: name which is the name of the trajectory and values which is an array containing (t, x, y) objects for the trajectory points. The property t denotes the time of the position and each trajectory is sorted according to that value in ascending order (so t should have properly sortable values).
Adds a marker to the plot. A marker is a dot along with some data that is used to show on tooltips. If a marker with the specified identifier already exists, the marker is ignored.
arg
type
description
name
string
Name of the marker.
key
string
Key of the line to mark.
pos
number[]
Array containing the x and y coordinates of the marker.
size
number
Diameter of the marker.
info
Object
Object containing the title and content for the marker's tooltip.
return
description
Object
D3 selection of the marker if it could be added, null otherwise.