Board index » delphi » Problem with TDBChart

Problem with TDBChart

Hi:

    Forgive my poor English, I'm spanish. I'm developing database program,
with
TeeChart 3.0 and D3 Client/Server.

     I have a problem with a TDBChart. I have one TQuery that filter a
Paradox Table and obtains the fields: Valor (Y axis), Hour(X axis) of Day
and
Day(Top X axis). The TDBChart should show in X axis a Hour format of
diferents days,  in Y axis the Valor, and in a Top X Axis the Day Field.

    Example of Chart:

                          10/02/98                11/02/98
100    |
90     |
  80    |
  70    |
  60    |_____________________________________________
            11:30       12:30  23:50      2:30       4:30

    Someone Can I help me?

    Thank You in Advance

Antonio Sanchez Zaplana
ansan...@teleco.upv.es
bui...@edu.tsai.es

 

Re:Problem with TDBChart


Hi Antonio
I replied by email too.
You can use the new "Both Axis" property for Series
so one single series will use two horizontal axes.
You can control each individual axis format and label
increment values.

The properties to use the Query1 will be:

Series1.DataSource := Query1 ;
Series1.XValues.ValueSource := 'MyDateField';
Series1.YValues.ValueSource := 'MyValueField';
Series1.HorizAxis := aBothHorizAxis;

Saludos desde Girona
David Berneda
www.teemach.com

ANTONIO SNCHEZ ZAPLANA escribi en mensaje
<6vdfff$jv...@forums.borland.com>...

Quote
>Hi:

>    Forgive my poor English, I'm spanish. I'm developing database program,
>with
>TeeChart 3.0 and D3 Client/Server.

>     I have a problem with a TDBChart. I have one TQuery that filter a
>Paradox Table and obtains the fields: Valor (Y axis), Hour(X axis) of Day
>and
>Day(Top X axis). The TDBChart should show in X axis a Hour format of
>diferents days,  in Y axis the Valor, and in a Top X Axis the Day Field.

>    Example of Chart:

>                          10/02/98                11/02/98
>100    |
>90     |
>  80    |
>  70    |
>  60    |_____________________________________________
>            11:30       12:30  23:50      2:30       4:30

>    Someone Can I help me?

>    Thank You in Advance

>Antonio Sanchez Zaplana
>ansan...@teleco.upv.es
>bui...@edu.tsai.es

Other Threads