Text, labels, arrows, callouts, and a semantic marker stay anchored to data.
Options and implementation
Text and label are equivalent authoring entry points. Callout offsets are pixels while their anchor remains a data coordinate. The annotation marker has an explicit symbol, fill, and zero decorative outline.
xy.chartxy.scatterxy.textxy.labelxy.arrowxy.calloutxy.markerxy.x_axisxy.y_axisxy.legendxy.theme
{
"chart": [
"title",
"width",
"height",
"padding"
],
"scatter": [
"x",
"y",
"color",
"size",
"opacity",
"stroke_width"
],
"text": [
"x",
"y",
"value",
"dx",
"dy",
"color",
"anchor"
],
"label": [
"x",
"y",
"value",
"dx",
"dy",
"color",
"anchor"
],
"arrow": [
"x0",
"y0",
"x1",
"y1",
"text",
"color",
"width",
"opacity"
],
"callout": [
"x",
"y",
"value",
"dx",
"dy",
"color",
"width",
"opacity",
"anchor"
],
"marker": [
"x",
"y",
"text",
"color",
"size",
"symbol",
"stroke_color",
"stroke_width",
"opacity",
"dx",
"dy",
"anchor"
],
"x_axis": [
"label",
"domain",
"tick_count"
],
"y_axis": [
"label",
"domain",
"tick_count"
],
"legend": [
"show"
],
"theme": [
"palette"
]
}