| View previous topic :: View next topic |
| Author |
Message |
DJV Guest
|
Posted: Mon Jun 27, 2005 4:34 pm Post subject: TCHART |
|
|
I have been trying to use VtChart. I have seen some references to TChart. I presume that TChart is the product of a base class that I haven't used before. Is it available with the personal version of Borland Builder? Is there an example of its implementation to produce a scatter chart with more than one series of points and X values that do not correspond to X value array integer numbering somewhere? THANKS.
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Mon Jun 27, 2005 5:12 pm Post subject: Re: TCHART |
|
|
"DJV" <ventruella (AT) hotmail (DOT) com> wrote:
| Quote: |
[...] I presume that TChart is the product of a base class
that I haven't used before.
|
It is derived from TPanel.
| Quote: | Is it available with the personal version of Borland Builder?
|
I don't know. I use Enterprise.
| Quote: | Is there an example of its implementation to produce a
scatter chart with more than one series of points and X
values that do not correspond to X value array integer
numbering somewhere?
|
I doubt it because it's very simple:
TPointSeries *PointSeries = new TPointSeries( Chart1 );
for( int x = 0; x < 10; ++x )
{
PointSeries->AddXY( x, x*2, "", clBlack );
}
Chart1->AddSeries( PointSeries );
~ JD
|
|
| Back to top |
|
 |
Jim Dodd Guest
|
Posted: Mon Jun 27, 2005 7:14 pm Post subject: Re: TCHART |
|
|
DJV wrote:
| Quote: | I have been trying to use VtChart. I have seen some references to TChart. I presume that TChart is the product of a base class that I haven't used before. Is it available with the personal version of Borland Builder? Is there an example of its implementation to produce a scatter chart with more than one series of points and X values that do not correspond to X value array integer numbering somewhere? THANKS.
|
TChart has nothing to do with VtChart. VtChart is an ActiveX-only
component. When I tried to find the parent company on the Web
(it's link is supposed to be [url]http://www.visualcomp.com)[/url], my
browser can't find it.
TChart is also from a third-party but the company is still
around and is actively improving it. The version that comes
free with Builder allows you to embed all the code for the
charts in your program so you don't have to load and register
and ActiveX component. But, there is an ActiveX version of
TChart available, too.
You may find TChart a little intimidating to use at first
because it is so flexible and powerful but it is worth
learning.
The company (Steema Software) that makes TChart is found at:
http://www.teechart.net/support/index.php
Regards,
Jim Dodd
Onset Computer Corp.
|
|
| Back to top |
|
 |
DJV Guest
|
Posted: Mon Jun 27, 2005 11:13 pm Post subject: Re: TCHART |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote:
| Quote: |
"DJV" <ventruella (AT) hotmail (DOT) com> wrote:
[...] I presume that TChart is the product of a base class
that I haven't used before.
It is derived from TPanel.
Is it available with the personal version of Borland Builder?
I don't know. I use Enterprise.
Is there an example of its implementation to produce a
scatter chart with more than one series of points and X
values that do not correspond to X value array integer
numbering somewhere?
I doubt it because it's very simple:
TPointSeries *PointSeries = new TPointSeries( Chart1 );
for( int x = 0; x < 10; ++x )
{
PointSeries->AddXY( x, x*2, "", clBlack );
}
Chart1->AddSeries( PointSeries );
~ JD
Thank you! |
|
|
| Back to top |
|
 |
DJV Guest
|
Posted: Mon Jun 27, 2005 11:18 pm Post subject: Re: TCHART |
|
|
Jim Dodd <bcbuilderboy (AT) yahoo (DOT) com> wrote:
| Quote: | DJV wrote:
I have been trying to use VtChart. I have seen some references to TChart. I presume that TChart is the product of a base class that I haven't used before. Is it available with the personal version of Borland Builder? Is there an example of its implementation to produce a scatter chart with more than one series of points and X values that do not correspond to X value array integer numbering somewhere? THANKS.
TChart has nothing to do with VtChart. VtChart is an ActiveX-only
component. When I tried to find the parent company on the Web
(it's link is supposed to be [url]http://www.visualcomp.com)[/url], my
browser can't find it.
TChart is also from a third-party but the company is still
around and is actively improving it. The version that comes
free with Builder allows you to embed all the code for the
charts in your program so you don't have to load and register
and ActiveX component. But, there is an ActiveX version of
TChart available, too.
You may find TChart a little intimidating to use at first
because it is so flexible and powerful but it is worth
learning.
The company (Steema Software) that makes TChart is found at:
http://www.teechart.net/support/index.php
Regards,
Jim Dodd
Onset Computer Corp.
Thanks! I just wish that the documentation for VtChart was |
more complete. What I need to do seems simple (setting data points), but I can't find an example that works in the help file. I can't use the Chartfx version that shipped with Builder, because the ability to hide points appears to not exist with this old version, so I can't plot two series with different quantities of points without randomly generating a lot of meaningless points, or adding points through interpolation that might confuse the user. I do appreciate your response, and will try to get TChart to work.
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Tue Jun 28, 2005 10:00 am Post subject: Re: TCHART |
|
|
"DJV" <ventruella (AT) hotmail (DOT) com> wrote:
| Quote: |
[...] so I can't plot two series with different quantities
of points without randomly generating a lot of meaningless
points, or adding points through interpolation that might
confuse the user.
|
Sure you can. You can use the sample that I gave you to add
multiple TPointSeries and they can also be selectively removed
as well.
~ JD
|
|
| Back to top |
|
 |
DJV Guest
|
Posted: Wed Jun 29, 2005 2:00 am Post subject: Re: TCHART |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote:
| Quote: |
"DJV" <ventruella (AT) hotmail (DOT) com> wrote:
[...] so I can't plot two series with different quantities
of points without randomly generating a lot of meaningless
points, or adding points through interpolation that might
confuse the user.
Sure you can. You can use the sample that I gave you to add
multiple TPointSeries and they can also be selectively removed
as well.
~ JD
|
The TPointSeries data type is not defined. Is there
a header file that must be loaded to use this TChart
object? Thanks!
DJV
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu Jun 30, 2005 3:08 am Post subject: Re: TCHART |
|
|
"DJV" <ventruella (AT) hotmail (DOT) com> wrote:
I missed your post. I didn't expect a reply ;-)
| Quote: | [...] Is there a header file that must be loaded to use this
TChart object?
|
After all of the header files it dropped into the form's header, you'd think that it could get all of them.
It missed Series.hpp.
How I determined that was to perform a search within files for
'TPointSeries'. The results showed me that the constructor
was defined in Series.hpp.
~ JD
|
|
| Back to top |
|
 |
|