Ok, I have finally been able to isolate the problem comparing your application with the WPF example project shipped with TeeChart. The problem occurs when rotating a chart with visible axes titles. You can also reproduce the probem using the WPF demo project adding lines below to InitializeChart() method in Window1.xaml.cs.
Code: Select all
tChart1.Axes.Left.Title.Text = "left axis title";
tChart1.Axes.Bottom.Title.Text = "bottom axis title";
Find attached PageChart.xaml.cs with changes I made. Also worth mentioning that I modified your project to use a Rotate tool instead of implementing rotation manually. For now a workaround is hiding axes titles for rotating, for example:
Code: Select all
private void buttonRotate_Click(object sender, RoutedEventArgs e)
{
const string ROTATE_MSG = " Drag Chart to Rotate";
System.Diagnostics.Debug.Assert(FChartTimeSeries.EventData != null,"EventData is null");
labelHelp.Content = ROTATE_MSG;
//FChartTimeSeries.ChartRotate = true;
//FChartTimeSeries.ChartTranslate = false;
//FChartTimeSeries.ChartZoom = false;
//FChartTimeSeries.ChartThickness = false;
//FChartTimeSeries.ChartDisplay.Zoom.Allow = false;
//if(!FChartTimeSeries.EventData.InputSettings.Chart3D)
//{
// button3D_Click(sender,e);
//}
FChartTimeSeries.ChartDisplay.Axes.Left.Title.Visible = false;
FChartTimeSeries.ChartDisplay.Axes.Bottom.Title.Visible = false;
Steema.TeeChart.WPF.Tools.Rotate rotate1 = new Steema.TeeChart.WPF.Tools.Rotate(FChartTimeSeries.ChartDisplay.Chart);
}