BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TeeChart positioning of marks

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Glenn Alcott
Guest





PostPosted: Sat Nov 18, 2006 9:12 am    Post subject: TeeChart positioning of marks Reply with quote



I am evaluating TeeChart Pro 7 and am having difficulty determining if it
can do a particular task. The first graph on this page illustrates what I
want to do:
http://www.trader4x.com/?p=45min

On this graph, the two lines represent two fields from a dataset containing
dollar amounts. The text marks ("1 lot", "2 lots") etc. represent another
field in the dataset called Lots. My client would like that number to
appear, as it does on this graph, near the data point for the red dollar
amount line. But since there is no relation between the value of this field
(which will generally be between 1 and 100) and the dollar fields (which can
be very large), I don't see any way to do this. The best I've been able to
do is to create a series for this field with the marks visible but the
actual line invisible, which results in all the marks being shown at the
same horizontal position near the 0 line on the Y-axis (since they are very
small values). I don't see any way to position these marks relative to the
value of another series. Is this possible?

Glenn
Back to top
Narcís Calvet
Guest





PostPosted: Fri Dec 01, 2006 6:27 pm    Post subject: Re: TeeChart positioning of marks Reply with quote



Hi Glenn,

Have you tried to assign them as the labels for one of the series you
already have?


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
Quote:
I am evaluating TeeChart Pro 7 and am having difficulty determining
if it can do a particular task. The first graph on this page
illustrates what I want to do:
http://www.trader4x.com/?p=45min

On this graph, the two lines represent two fields from a dataset
containing dollar amounts. The text marks ("1 lot", "2 lots") etc.
represent another field in the dataset called Lots. My client would
like that number to appear, as it does on this graph, near the data
point for the red dollar amount line. But since there is no relation
between the value of this field (which will generally be between 1
and 100) and the dollar fields (which can be very large), I don't see
any way to do this. The best I've been able to do is to create a
series for this field with the marks visible but the actual line
invisible, which results in all the marks being shown at the same
horizontal position near the 0 line on the Y-axis (since they are
very small values). I don't see any way to position these marks
relative to the value of another series. Is this possible?

Glenn
Back to top
Glenn Alcott
Guest





PostPosted: Tue Dec 05, 2006 8:11 am    Post subject: Re: TeeChart positioning of marks Reply with quote



I"m not sure what you mean by assigning them as labels. Can you explain that
further? Maybe it's something in TeeChart that I don't know about.

I did find a solution. I saved the values of Lots to a string list, one for
each data point. In the OnGetMarkText event of the red series I assign them
to the MarkText:
MarkText:=NumLotsList[ValueIndex] + ' lots';

Are you talking about a different method? For future reference it would be
good to know if there is another way to do this.

Glenn

"Narcís Calvet" <support (AT) steema (DOT) com> wrote in message
news:45701f75 (AT) newsgroups (DOT) borland.com...
Quote:
Hi Glenn,

Have you tried to assign them as the labels for one of the series you
already have?


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post
your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
I am evaluating TeeChart Pro 7 and am having difficulty determining
if it can do a particular task. The first graph on this page
illustrates what I want to do:
http://www.trader4x.com/?p=45min

On this graph, the two lines represent two fields from a dataset
containing dollar amounts. The text marks ("1 lot", "2 lots") etc.
represent another field in the dataset called Lots. My client would
like that number to appear, as it does on this graph, near the data
point for the red dollar amount line. But since there is no relation
between the value of this field (which will generally be between 1
and 100) and the dollar fields (which can be very large), I don't see
any way to do this. The best I've been able to do is to create a
series for this field with the marks visible but the actual line
invisible, which results in all the marks being shown at the same
horizontal position near the 0 line on the Y-axis (since they are
very small values). I don't see any way to position these marks
relative to the value of another series. Is this possible?

Glenn

Back to top
Narcís Calvet
Guest





PostPosted: Tue Dec 05, 2006 3:42 pm    Post subject: Re: TeeChart positioning of marks Reply with quote

Hi Glenn,

Sorry if I wasn't clear enough. I meant that when you populate your series
you can pass one parameter that is the label for each point, for example:

Series1.Add(value, 'This Point Label', clTeeColor);

--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
Quote:
I"m not sure what you mean by assigning them as labels. Can you
explain that further? Maybe it's something in TeeChart that I don't
know about.

I did find a solution. I saved the values of Lots to a string list,
one for each data point. In the OnGetMarkText event of the red series
I assign them to the MarkText:
MarkText:=NumLotsList[ValueIndex] + ' lots';

Are you talking about a different method? For future reference it
would be good to know if there is another way to do this.

Glenn

"Narcís Calvet" <support (AT) steema (DOT) com> wrote in message
news:45701f75 (AT) newsgroups (DOT) borland.com...
Hi Glenn,

Have you tried to assign them as the labels for one of the series you
already have?


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please
post your support questions at Steema's Support monitored Forums for
customers: http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
I am evaluating TeeChart Pro 7 and am having difficulty determining
if it can do a particular task. The first graph on this page
illustrates what I want to do:
http://www.trader4x.com/?p=45min

On this graph, the two lines represent two fields from a dataset
containing dollar amounts. The text marks ("1 lot", "2 lots") etc.
represent another field in the dataset called Lots. My client would
like that number to appear, as it does on this graph, near the data
point for the red dollar amount line. But since there is no relation
between the value of this field (which will generally be between 1
and 100) and the dollar fields (which can be very large), I don't
see any way to do this. The best I've been able to do is to create a
series for this field with the marks visible but the actual line
invisible, which results in all the marks being shown at the same
horizontal position near the 0 line on the Y-axis (since they are
very small values). I don't see any way to position these marks
relative to the value of another series. Is this possible?

Glenn
Back to top
Glenn Alcott
Guest





PostPosted: Wed Dec 06, 2006 11:34 pm    Post subject: Re: TeeChart positioning of marks Reply with quote

Doesn't this only apply if you are populating the series in code? I am using
ADO datasets or text files to populate my series.

Glenn

"Narcís Calvet" <support (AT) steema (DOT) com> wrote in message
news:45753eca$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi Glenn,

Sorry if I wasn't clear enough. I meant that when you populate your series
you can pass one parameter that is the label for each point, for example:

Series1.Add(value, 'This Point Label', clTeeColor);

--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post
your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
I"m not sure what you mean by assigning them as labels. Can you
explain that further? Maybe it's something in TeeChart that I don't
know about.

I did find a solution. I saved the values of Lots to a string list,
one for each data point. In the OnGetMarkText event of the red series
I assign them to the MarkText:
MarkText:=NumLotsList[ValueIndex] + ' lots';

Are you talking about a different method? For future reference it
would be good to know if there is another way to do this.

Glenn

"Narcís Calvet" <support (AT) steema (DOT) com> wrote in message
news:45701f75 (AT) newsgroups (DOT) borland.com...
Hi Glenn,

Have you tried to assign them as the labels for one of the series you
already have?


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please
post your support questions at Steema's Support monitored Forums for
customers: http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
I am evaluating TeeChart Pro 7 and am having difficulty determining
if it can do a particular task. The first graph on this page
illustrates what I want to do:
http://www.trader4x.com/?p=45min

On this graph, the two lines represent two fields from a dataset
containing dollar amounts. The text marks ("1 lot", "2 lots") etc.
represent another field in the dataset called Lots. My client would
like that number to appear, as it does on this graph, near the data
point for the red dollar amount line. But since there is no relation
between the value of this field (which will generally be between 1
and 100) and the dollar fields (which can be very large), I don't
see any way to do this. The best I've been able to do is to create a
series for this field with the marks visible but the actual line
invisible, which results in all the marks being shown at the same
horizontal position near the 0 line on the Y-axis (since they are
very small values). I don't see any way to position these marks
relative to the value of another series. Is this possible?

Glenn

Back to top
Narcís Calvet
Guest





PostPosted: Mon Dec 11, 2006 10:12 pm    Post subject: Re: TeeChart positioning of marks Reply with quote

Hi Glenn,

You can also assign one database field to the series labels:

Series1.XLabelsSource := "LASTNAME";


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."


Glenn Alcott wrote:
Quote:
Doesn't this only apply if you are populating the series in code? I
am using ADO datasets or text files to populate my series.

Glenn

"Narcís Calvet" <support (AT) steema (DOT) com> wrote in message
news:45753eca$1 (AT) newsgroups (DOT) borland.com...
Hi Glenn,

Sorry if I wasn't clear enough. I meant that when you populate your
series you can pass one parameter that is the label for each point,
for example:

Series1.Add(value, 'This Point Label', clTeeColor);

--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please
post your support questions at Steema's Support monitored Forums for
customers: http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
I"m not sure what you mean by assigning them as labels. Can you
explain that further? Maybe it's something in TeeChart that I don't
know about.

I did find a solution. I saved the values of Lots to a string list,
one for each data point. In the OnGetMarkText event of the red
series I assign them to the MarkText:
MarkText:=NumLotsList[ValueIndex] + ' lots';

Are you talking about a different method? For future reference it
would be good to know if there is another way to do this.

Glenn

"Narcís Calvet" <support (AT) steema (DOT) com> wrote in message
news:45701f75 (AT) newsgroups (DOT) borland.com...
Hi Glenn,

Have you tried to assign them as the labels for one of the series
you already have?


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please
post your support questions at Steema's Support monitored Forums
for customers: http://support.steema.com for a prompter reply."

Glenn Alcott wrote:
I am evaluating TeeChart Pro 7 and am having difficulty
determining if it can do a particular task. The first graph on
this page illustrates what I want to do:
http://www.trader4x.com/?p=45min

On this graph, the two lines represent two fields from a dataset
containing dollar amounts. The text marks ("1 lot", "2 lots") etc.
represent another field in the dataset called Lots. My client
would like that number to appear, as it does on this graph, near
the data point for the red dollar amount line. But since there is
no relation between the value of this field (which will generally
be between 1 and 100) and the dollar fields (which can be very
large), I don't see any way to do this. The best I've been able
to do is to create a series for this field with the marks visible
but the actual line invisible, which results in all the marks
being shown at the same horizontal position near the 0 line on
the Y-axis (since they are very small values). I don't see any
way to position these marks relative to the value of another
series. Is this possible?

Glenn
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.