Page 1 of 1

WPF TChart. Bottom axis title problem.

Posted: Thu May 22, 2014 7:11 am
by 15669262
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 4555 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 4553 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 4560 times

Re: WPF TChart. Bottom axis title problem.

Posted: Thu May 22, 2014 11:03 am
by Christopher
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.