How to set the time interval axis for WPF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Candy
Newbie
Newbie
Posts: 57
Joined: Mon Apr 26, 2010 12:00 am
Contact:

How to set the time interval axis for WPF

Post by Candy » Tue Aug 12, 2014 7:21 am

I want to set the time interval axis, i used

tChart1.Axes.Bottom.DateTimeIncrement(true, true, ref value, 2, Steema.TeeChart.WPF.DateTimeSteps.TwoDays);

but Failure. How can i do?

I'm working environment: VS2010(.NET Framework 4.0) / Windows7

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

Re: How to set the time interval axis for WPF

Post by Christopher » Tue Aug 12, 2014 7:54 am

Candy wrote:I want to set the time interval axis, i used

tChart1.Axes.Bottom.DateTimeIncrement(true, true, ref value, 2, Steema.TeeChart.WPF.DateTimeSteps.TwoDays);

but Failure. How can i do?

I'm working environment: VS2010(.NET Framework 4.0) / Windows7
Try:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;

      Line line = new Line(tChart1.Chart);
      line.FillSampleValues();
      line.XValues.DateTime = true;

      tChart1.Axes.Bottom.Labels.Angle = 90;

      tChart1.Axes.Bottom.Increment = Utils.GetDateTimeStep(DateTimeSteps.TwoDays);
    }
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

Candy
Newbie
Newbie
Posts: 57
Joined: Mon Apr 26, 2010 12:00 am
Contact:

Re: How to set the time interval axis for WPF

Post by Candy » Thu Aug 14, 2014 2:55 am

Thank you very much :D

Post Reply