You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Annotations can also be placed using coordinates proportional to the chart canvas, by setting the `XRef` and `YRef` to `"paper"`.
107
+
In multi-chart layouts, the reference can be set to the respective x, and y axis-component (e.g. `XRef = x3, YRef = y3` for the third chart within the chart grid).
108
+
*)
109
+
110
+
// setting no reference, the annotation will be placed at the given x and y values in the first chart
111
+
leta_multichart1= Annotation.init (X =8, Y =5.0, Text ="no ref defined")
112
+
113
+
// setting the reference to specific x and y components, the annotation will be placed at the given x and y values in the chart defined by the ref-coordinates
114
+
leta_multichart2= Annotation.init (X =7, Y =3.5, XRef ="x1", YRef ="y1", Text ="ref: x1 and y1")
115
+
leta_multichart3= Annotation.init (X =7, Y =3.5, XRef ="x2", YRef ="y2", Text ="ref: x2 and y2")
116
+
leta_multichart4= Annotation.init (X =7, Y =3.5, XRef ="x3", YRef ="y3", Text ="ref: x3 and y3")
117
+
leta_multichart5= Annotation.init (X =7, Y =3.5, XRef ="x4", YRef ="y4", Text ="ref: x4 and y4")
118
+
119
+
// setting the x and y reference to "paper", the annotation will be placed proportional to the chart canvas
120
+
leta_multichart6= Annotation.init (X =1.1, Y =1.1, XRef ="paper", YRef ="paper", Text ="ref: paper@1.1")
121
+
leta_multichart7= Annotation.init (X =0.5, Y =0.4, XRef ="paper", YRef ="paper", Text ="ref: paper@0.5")
In multi-chart layouts *with coupled axis*, the reference can be set to the respective coupled x, and y axis-component (e.g. `XRef = x1, YRef = y2` for the leftmost chart in the second row).
145
+
*)
146
+
147
+
// setting the reference to specific x and y components with coupled axes, the annotation will be placed at the given x and y values in the chart defined by the ref-coordinates
148
+
leta_multichart_coupled_1= Annotation.init (X =7, Y =3.5, XRef ="x1", YRef ="y1", Text ="ref: x1 and y1")
149
+
leta_multichart_coupled_2= Annotation.init (X =7, Y =3.5, XRef ="x2", YRef ="y1", Text ="ref: x2 and y1")
150
+
leta_multichart_coupled_3= Annotation.init (X =7, Y =3.5, XRef ="x2", YRef ="y2", Text ="ref: x2 and y2")
151
+
leta_multichart_coupled_4= Annotation.init (X =7, Y =3.5, XRef ="x1", YRef ="y2", Text ="ref: x1 and y2")
0 commit comments