Page 1 of 1

How to set the time interval axis for WPF

Posted: Tue Aug 12, 2014 7:21 am
by 15656007
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

Re: How to set the time interval axis for WPF

Posted: Tue Aug 12, 2014 7:54 am
by Christopher
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);
    }

Re: How to set the time interval axis for WPF

Posted: Thu Aug 14, 2014 2:55 am
by 15656007
Thank you very much :D