Hi Joern,
We could not replicate the problem - we tested with the following code:
private void Form1_Load(object sender, EventArgs e)
{
// setup chart
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
NLineSeries line = new NLineSeries();
line.DataLabelStyle.Visible = false;
Random rand = new Random();
for (int i = 0; i < 100; i++)
{
line.Values.Add(rand.Next(100));
}
chart.Series.Add(line);
callout = new NRectangularCallout();
callout.Text = "Some text";
callout.UseAutomaticSize = true;
callout.Anchor = new NDataPointAnchor(line, 50, ContentAlignment.MiddleCenter, StringAlignment.Center);
chart.ChildPanels.Add(callout);
}
NRectangularCallout callout;
private void button1_Click(object sender, EventArgs e)
{
NLineSeries line = (NLineSeries)nChartControl1.Charts[0].Series[0];
callout.Anchor = new NDataPointAnchor(line, 99, ContentAlignment.MiddleCenter, StringAlignment.Center);
nChartControl1.Refresh();
}
and the callout is repositioned properly.
Best Regards,
Nevron Support Team