TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
neurosoft
- Newbie
- Posts: 14
- Joined: Wed May 14, 2014 12:00 am
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 (26.32 KiB) Viewed 4552 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 (37.98 KiB) Viewed 4550 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 (38.79 KiB) Viewed 4557 times
-
Christopher
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
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.