Series marks outside of bar

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MJ
Newbie
Newbie
Posts: 10
Joined: Thu May 08, 2003 4:00 am

Series marks outside of bar

Post by MJ » Wed Jan 14, 2004 12:30 pm

Is there a way to get the series marks above the items they are marking? Or to put the axis labels inside the graph itself?

Essentially what I want to do is get a graph that looks like:

| Widgets
| ***********
| Wotsits
| *****
| Doobreys
| *******************
| Thingamebobs
| *************
+--------------------------------

Try as I might with Teechart Pro 6, I can't get it to work. If it can't be done, this is a must-do for version 7 as so many other charts I see can do this. I must be missing something!

Matthew

Pep
Site Admin
Site Admin
Posts: 3274
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jan 14, 2004 12:53 pm

Hi Mathew,

>Is there a way to get the series marks above the items they are >marking? Or to put the axis labels inside the graph itself?
Yes, you can customize the Marks positions using something like the following code :

Code: Select all

with Series1.Marks.Positions[0] do
begin
    Custom:=True;
    LeftTop.X:=100;
    LeftTop.Y:=150;
   { ... }
end;
Also, I think there's one example of this in the TeeChart Pro Demo Features Project.

MJ
Newbie
Newbie
Posts: 10
Joined: Thu May 08, 2003 4:00 am

Post by MJ » Thu Jan 15, 2004 1:08 pm

Thanks, I'll have a play with that and see how it goes.

Matthew

Post Reply