This API takes the (x,y) starting point and the text. You do this for each of the data points, creating a bar graph with a label below it for each.
您对每个数据点都执行这个操作,为每个数据点创建一个柱状图,其下带有一个标签。
3
Your first thought might be to use the localToGlobal of the label's parent because x and y of the label are relative to the x and y of its parent, box.
您的第一个想法可能是使用 label 的父容器的 localToGlobal,因为 label 的 x 和 y 坐标都与它的父容器 box 的 x 和 y 坐标相对应。