Board index » delphi » Looking for non-visual chart component

Looking for non-visual chart component

Hi,

does anybody know, where can I get one? I need non-visual (descendant of
TComponent, not TControl) component for drawing simple bar graphs on canvas
that I will pass to him. Visual are useless, since I want to use it in web
application.

Thanks.

Martin

 

Re:Looking for non-visual chart component


"Martin Hronsky" <martin.hron...@softec.sk> a crit dans le message de news:
3dbe360...@newsgroups.borland.com...

Quote

> Hi,

> does anybody know, where can I get one? I need non-visual (descendant of
> TComponent, not TControl) component for drawing simple bar graphs on
canvas
> that I will pass to him. Visual are useless, since I want to use it in web
> application.

> Thanks.

 Can't you just access the Canvas property of TChart ?

Julien

Re:Looking for non-visual chart component


Hi Mat,

Thank you for your hint. I will try it and find out. I need a non-visual
component because I need to place it on WebModule in ISAPI application (so
there is no problem when component needs GUI functions), but most of
charting components have their logic directly implemented in some TControl
descendant which make them useless in non-visual apps. I would expect, that
charting components should have thier logic implemented in TComponent
descendant and use TControl descendant like visual wrapper. I would make
them more flexible.

Thanks again.

Martin

Quote
Mat Ballard <mat.ball...@chemware.hypermart.net> wrote in message

news:3DBF0D84.8020708@chemware.hypermart.net...
Quote
> Martin Hronsky wrote:

> > does anybody know, where can I get one? I need non-visual (descendant of
> > TComponent, not TControl) component for drawing simple bar graphs on
canvas
> > that I will pass to him. Visual are useless, since I want to use it in
web
> > application.

> check out TPlot at my website below.

> it can be compiled (check out the {$DEFINE GUI} option in Plot.inc) to
produce a
> non-visual TComponent descendant, and so used in a console app (eg: a
cgi).
> however, under windows it still calls the Windows API (for TBitmap), and
under
> Linux it needs an X framebuffer server (see my earlier posts on this
subject)
> for the same reason.

> i have nearly completed work on version 3, which has major revisions and
> changes. one of these changes is a completely X-server-free version. this
is, i
> believe, exactly what is needed to efficiently create Apache CGIs and DSOs
that
> produce graphs without requiring an X server.

> this work will later be extended to provide a generic solution to image
> production with X Servers.

> cheers,

> Mat

> ________________________________________

> rm -rf /mnt/windows/
> ________________________________________

> Dr Mat Ballard,
> mat.ball...@Chemware.hypermart.net
> http://Chemware.hypermart.net/
> Linux Registered User #6854

Re:Looking for non-visual chart component


"Martin Hronsky" <martin.hron...@softec.sk> a crit dans le message de news:
3dc03...@newsgroups.borland.com...

Quote
> Hi Mat,

> Thank you for your hint. I will try it and find out. I need a non-visual
> component because I need to place it on WebModule in ISAPI application (so
> there is no problem when component needs GUI functions), but most of
> charting components have their logic directly implemented in some TControl
> descendant which make them useless in non-visual apps. I would expect,
that
> charting components should have thier logic implemented in TComponent
> descendant and use TControl descendant like visual wrapper. I would make
> them more flexible.

> Thanks again.

> Martin

This means tht you'll have to create your TChart at runtime set every
property by code if you use it.

Good luck :)

Julien

Re:Looking for non-visual chart component


Hi Mat,

you are right, that usefull graphing component should by TControl descendant
to give user GUI for setting graph appearance and to be able to show him the
results, but I still think that it would be usefull with no extra work, if
engine would be TComponent with all properties related to graph appearance
and one method with TCanvas parameter to be able to draw on any canvas
(bitmap or control). Same methods that setup internal members would setup
properties of engine. And this engine could be wrapped in some TControl
container with no graphing logic, only providing intreface to setup
properties and appearance in run-time (and/or design-time). This would give
opportunity to use graphing engine also in non-visual applications and also
would give programmer posibility to write his own TControl container (for
example programmer using of QuickReport could write component for printing
those graphs whithout all those menus and events) without writing graphing
engine.

Best regards

Martin

Quote
"Mat Ballard" <mat.ball...@chemware.hypermart.net> wrote in message

news:3DC06929.1060203@chemware.hypermart.net...
Quote
> g'day Martin,

> yes, it's a bit of a problem: in order to be useful in a GUI app, a
graphing
> component needs to be descended from T{Win}Control; however, to be useable
in a
> web app (of whatever type) it needs to be a TComponent descendant (and
much more).

> i've already done the first with TPlot, and now it's a case of dealing
with the
> "much more". the path i chose was liberal use of $IFDEFs - which results
in code
> that looks horrible at first sight, but isn't too bad once you know the
> principle: if it's GUI-related, then cut it out.

> the "much more" problem is that of getting anything useful out of a
TComponent:
> yes, we can load the data, set the graph appearance, but how do we draw on
a
> "bitmap" of some sort: that was much harder to sort out.

> cheers and good luck,

> Mat

> ps: make sure you get the "Third Party" components as well !

> ________________________________________

> rm -rf /mnt/windows/
> ________________________________________

> Dr Mat Ballard,
> mat.ball...@Chemware.hypermart.net
> http://Chemware.hypermart.net/
> Linux Registered User #6854

Re:Looking for non-visual chart component


See TeeChart CGI web demo and source code at:
http://www.steema.com/products/teechart/version5/TeeChartWeb/Example.htm

regards
david
www.steema.com

Quote
"Martin Hronsky" <martin.hron...@softec.sk> wrote in message

news:3dbe360d$1@newsgroups.borland.com...
Quote

> Hi,

> does anybody know, where can I get one? I need non-visual (descendant of
> TComponent, not TControl) component for drawing simple bar graphs on
canvas
> that I will pass to him. Visual are useless, since I want to use it in web
> application.

> Thanks.

> Martin

Other Threads