X axis minimum time and maximum not proper when using Bar gr

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vijay
Newbie
Newbie
Posts: 42
Joined: Thu Jul 31, 2008 12:00 am
Contact:

X axis minimum time and maximum not proper when using Bar gr

Post by vijay » Fri Jan 28, 2011 3:35 pm

Hi ,

I am using WPF version of TChart
I need to show values in every hour as a bar graph.
And X axis should display the leftmost time as 00:00 and rightmost time as 23:00
I have set it as as follows and it works for other type grapgs like Area or Line but it not happening for bar graph.
It is an urgent requirement please provide a quick solution.

The code i used to set Min and max as follows

tCtrl.Chart.Axes.Bottom.Automatic = false;
tCtrl.Chart.Axes.Bottom.AutomaticMinimum = false;
tCtrl.Chart.Axes.Bottom.AutomaticMaximum = false;
tCtrl.Chart.Axes.Bottom.Increment = Utils.GetDateTimeStep(DateTimeSteps.FifteenMinutes);
tCtrl.Chart.Axes.Bottom.SetMinMax(date.Date, date.Date.AddHours(23).AddMinutes(45));
tCtrl.Chart.Axes.Bottom.Title.Text = date.Date.ToString("yyyy/MM/dd");


Regards,
Das

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: X axis minimum time and maximum not proper when using Bar gr

Post by Narcís » Mon Jan 31, 2011 10:41 am

Hi Das,

Which is the exact problem you are having with Bar series? Which are the settings differences between Bar and the other series it worked for? Can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply