WPF TChart. Bottom axis title problem.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 14
Joined: Wed May 14, 2014 12:00 am

WPF TChart. Bottom axis title problem.

Post by neurosoft » Thu May 22, 2014 7:11 am

Hello steema!
I'm using the latest version of WPF TChart. In this version Bottom axis title is located over zero mark when series is empy.

Code: Select all

MyTChart.Aspect.View3D = false;                        
Bar bar = new Bar();
MyTChart.Series.Add(bar);            
MyTChart.Axes.Bottom.Title.Text = "Text";
It looks like this:
axistitle.jpg
axistitle.jpg (26.32 KiB) Viewed 4554 times
Adding of one bar value doesn't resolve the problem:

Code: Select all

MyTChart.Aspect.View3D = false;                        
Bar bar = new Bar();
bar.Add(1);
MyTChart.Series.Add(bar);            
MyTChart.Axes.Bottom.Title.Text = "Text";
axistitle1.jpg
axistitle1.jpg (37.98 KiB) Viewed 4552 times
But if I add two bar values the axis title becomes located fine:

Code: Select all

MyTChart.Aspect.View3D = false;                        
Bar bar = new Bar();
bar.Add(1);
bar.Add(2);
MyTChart.Series.Add(bar);            
MyTChart.Axes.Bottom.Title.Text = "Text";
axistitle2.jpg
axistitle2.jpg (38.79 KiB) Viewed 4559 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: WPF TChart. Bottom axis title problem.

Post by Christopher » Thu May 22, 2014 11:03 am

Hello!
neurosoft wrote:Hello steema!
I'm using the latest version of WPF TChart. In this version Bottom axis title is located over zero mark when series is empy.
Yes, I have been able to reproduce this issue here and have added it to our bug database with id=778. Please note the temporary workaround:

Code: Select all

tChart1.Axes.Bottom.Title.Text = Utils.NewLine + "Text";
Apologies for any inconvenience.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply