Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

TAChart legends

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

David M. Lawrence

Is there a way to have the legend aligned bottom center and BELOW the frame of the graph. The only alignment I could find was top or bottom right or left, with the legend parked on top of the data I'd like to show. The graph would benefit from the legend, but not if the only way to have the legend ends up hiding some of the data is it supposed to explain.

Dave

------------------------------------------------------ David M. Lawrence | Home: (804) 559-9786 7471 Brook Way Court | Fax: (804) 559-9787 Mechanicsville, VA 23111 | Email: USA | http: http://fuzzo.com ------------------------------------------------------ "All drains lead to the ocean." -- Gill, Finding Nemo "We have met the enemy and he is us." -- Pogo "No trespassing 4/17 of a haiku" -- Richard Brautigan

Reply by email

Alexander Klenin
to David M. Lawrence
David M. Lawrence wrote 5 lines
Is there a way to have the legend aligned bottom center and BELOW the frame of the graph. ?The only alignment I could find was top or bottom right or left, with the legend parked on top of the data I'd like to show. ?The graph would benefit from the legend, but not if the only way to have the legend ends up hiding some of the data is it supposed to explain.

Set Alignment=laBottomCenter and UseSidebar=true

Alexander S. Klenin

Reply by email

David M. Lawrence
to Alexander Klenin
Alexander Klenin wrote 8 lines
On Sun, Aug 21, 2011 at 16:18, David M. Lawrence wrote: > Is there a way to have the legend aligned bottom center and BELOW the frame > of the graph. The only alignment I could find was top or bottom right or > left, with the legend parked on top of the data I'd like to show. The graph > would benefit from the legend, but not if the only way to have the legend > ends up hiding some of the data is it supposed to explain. Set Alignment=laBottomCenter and UseSidebar=true

What version of TAchart is the laBottomCenter option in? I have the official release of Lazarus (0.9.30, 30 March 2011) and the only alignment options I have are laTopRight, laTopLeft, laBottomRight, and laBottomLeft. With those, the UseSidebar option forces the legend to the right or left and squeezes the chart's horizontal dimensions.

I tried coding the alignment option in the plot procedure, but it is flagged as an error upon compiling. I also tried typing the laBottomCenter in the object inspector, but as soon as I leave, Lazarus resets it to laBottomRight.

Dave

------------------------------------------------------ David M. Lawrence | Home: (804) 559-9786 7471 Brook Way Court | Fax: (804) 559-9787 Mechanicsville, VA 23111 | Email: USA | http: http://fuzzo.com ------------------------------------------------------ "All drains lead to the ocean." -- Gill, Finding Nemo "We have met the enemy and he is us." -- Pogo "No trespassing 4/17 of a haiku" -- Richard Brautigan

Reply by email

David M. Lawrence
to Alexander Klenin
Alexander Klenin wrote 6 lines
On Sun, Aug 21, 2011 at 16:58, David M. Lawrence wrote: >> Set Alignment=laBottomCenter and UseSidebar=true >> > What version of TAchart is the laBottomCenter option in? Svn trunk.

I have downloaded the latest version of the TAChart files, but I get the following error when I try to compile it in Lazarus:

"C:\lazarus\components\tachart\tagraph.pas(532,5) Error: Wrong number of
parameters specified for call to "'ReadComponentFromBinaryStream'"

Dave

------------------------------------------------------ David M. Lawrence | Home: (804) 559-9786 7471 Brook Way Court | Fax: (804) 559-9787 Mechanicsville, VA 23111 | Email: USA | http: http://fuzzo.com ------------------------------------------------------ "All drains lead to the ocean." -- Gill, Finding Nemo "We have met the enemy and he is us." -- Pogo "No trespassing 4/17 of a haiku" -- Richard Brautigan

Reply by email

Alexander Klenin
to David M. Lawrence
David M. Lawrence wrote 7 lines
> Svn trunk. > I have downloaded the latest version of the TAChart files, but I get the following error when I try to compile it in Lazarus: "C:\lazarus\components\tachart\tagraph.pas(532,5) Error: Wrong number of parameters specified for call to "'ReadComponentFromBinaryStream'"

It seems new TAChart will not compile with old Lazarus. Either get and compile whole Lazarus:
http://wiki.lazarus.freepascal.org/Getting_Lazarus Or get a binary snapshot:
http://www.hu.freepascal.org/lazarus/

Alexander S. Klenin

Reply by email