Autor Beitrag
Soulama
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Di 15.06.04 11:20 
Ich habe volgendes Code:

Hab ein Tchart Einen FillSample Value Button,und next und Previeus Buttons. Der Chart hat 2 Horizontale Bar Series,die DatumWerte in der LeftAxis haben. ich fulle den chart Werte like this:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
procedure TForm1.SetminMaxDateClick(Sender: TObject);
var
    Datum : TDate ;
    y,m,d,a,b : Word  ;
    i     : Integer ;
begin
      Chart.LeftAxis.SetMinMax(EncodeDate(2004,6,1 ),EncodeDate(2004,7,1));
      Datum := NOW ;
//------------------------------------------------------------------------------
          for i:=0 to 30-1 do
          begin
              y := Dateutils.YearOf(Datum);
              m := Dateutils.MonthOf(Datum);
              d := Dateutils.DayOf(Datum);

              Chart.Series[1].AddXY(b*7 ,EncodeDate(y, m, d), '');
              Chart.Series[0].AddXY(a*3 ,EncodeDate(y, m, d), '');
              Datum := Datum+3 ;
              inc(a);
              b := b+22 ;
          end;
//------------------------------------------------------------------------------
end;

Aber beim Chart.nextPage und Chart.PreviewPAge passiert GAAAAAAR nix. Hat jemand eine Idee wie man dem Chart sagt er soll 10 werte pro Seite anzeigen und nicht irgend'n mist.

Danke euch!

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.