Convert data to annotation labels
Value
A list for the labels option of hc_add_annotation().
Examples
peaks <- data.frame(x = c(0, 2), y = c(5, 6), text = c("Start", "Peak"))
highchart() |>
hc_add_series(data = c(5, 3, 6)) |>
hc_add_annotation(labels = data_to_annotation_labels(peaks))
