TGRAPH Technical Question

Re: TGRAPH Technical Question

Postby George » Fri Dec 26, 2014 11:58 pm

Silvio,
You need only to add the following DATA:
DATA aBarCoors
DATA lToolTip INIT .F.

The tooltip should display the X Legend and the Y Legend and Value
[url][url=http://postimage.org/]Image[/url]
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

Re: TGRAPH Technical Question

Postby Silvio.Falconi » Sun Dec 28, 2014 11:08 am

yes now run ok George
I made an error on addserie method because you added other lines
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: TGRAPH Technical Question

Postby Silvio.Falconi » Sun Dec 28, 2014 1:16 pm

George,
Code: Select all  Expand view


oApp():oGraph:lToolTip := .t.

oApp():oGraph:cToolTip =  { | nAt, nSerie, nRow, nCol | nSerie := If( nAt % ;
                         Len( oApp():oGraph:aSeries ) == 0, Len( oApp():oGraph:aSeries ),;
                         Int( nAt % Len( oApp():oGraph:aSeries ) ) ),;
                         oApp():oGraph:ToolTip( nAt, nRow, nCol, nSerie) }

 


It is ok when there are 2 series

When there is one serie it make error How I can modify it ?


with two series
Image

with one serie
Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: TGRAPH Technical Question

Postby George » Mon Dec 29, 2014 12:57 am

Silvio,
Here is working fine for one series:

[url][url=http://postimage.org/]Image[/url]

Did you modify the Tooltip Method?
Can you post a sample data where the problem is occurring?

Regards,

George
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

Re: TGRAPH Technical Question

Postby Silvio.Falconi » Wed Dec 31, 2014 6:22 pm

can you give to me your mail or you can send me a message at silvio[dot]falconi[at]gmail[dot]com thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: TGRAPH Technical Question

Postby Antonio Linares » Thu Jan 01, 2015 10:31 pm

This example shows everything :-)

Code: Select all  Expand view
   oGraph:cToolTip =  { | nAt, nSerie, nIndex | nSerie := If( nAt % ;
                         Len( oGraph:aSeries ) == 0, Len( oGraph:aSeries ),;
                         Int( nAt % Len( oGraph:aSeries ) ) ),;
                         "Series: " + Alltrim( Str( nSerie ) ) + CRLF + ;
                         "Bar: " + AllTrim( Str( nIndex := Int( nAt / Len( oGraph:aSeries ) ) + 1 + ;
                         If( nAt % Len( oGraph:aSeries ) == 0, -1, 0 ) ) ) + CRLF + ;
                         "Value: " + AllTrim( Str( oGraph:aData[ nSerie ][ nIndex ] ) ) }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TGRAPH Technical Question

Postby Silvio.Falconi » Fri Jan 02, 2015 8:04 pm

thanks antonio
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: TGRAPH Technical Question

Postby Silvio.Falconi » Sat Jan 03, 2015 10:52 am

But we must say it run only with graphics type bars ..for the other not run !!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: TGRAPH Technical Question

Postby Antonio Linares » Sat Jan 03, 2015 8:38 pm

Yes, it is only for bars
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests