Column Series textannotation position

Derick Loo 4 года назад 0

I have xamarin form which using oxyplot to plot column series. I wish to display a text annotation in the chart. I able to display it but when the content of the chart is different, the position of textannotation will run. How I can fix the position of it? Below is my code

plotModel = new PlotModel


Title = "Test",

LegendPlacement = LegendPlacement.Outside,

LegendPosition = LegendPosition.BottomCenter,
LegendOrientation = LegendOrientation.Horizontal,
LegendBorderThickness = 0

TextAnnotation txtlabel = new TextAnnotation();

txtlabel.Text = "1:1000";
txtlabel.TextColor = OxyColors.Red;
txtlabel.Stroke = OxyColors.Red;
txtlabel.StrokeThickness = 2;
txtlabel.FontSize = 13;
txtlabel.TextPosition = new DataPoint(-0.2, 0.64);


Сервис поддержки клиентов работает на платформе UserEcho