Page 1 of 1

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

Posted: Fri Jan 28, 2011 3:35 pm
by 14049736
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

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

Posted: Mon Jan 31, 2011 10:41 am
by narcis
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.