Teechart
Is it possible to assign data from a Query at runtime?in a normal Chart?
When its possible how?
--- posted by geoForum on http://delphi.newswhat.com
When its possible how?
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
I am not sure I understand the context of the question. When you say runtime
do you mean using the end-user report designer? Or do you mean
programmatically by writing code?
The TppDPTeeChart can be used to create a chart that contains data-aware
series that are connected to a datapipeline. You can use the TeeChart editor
to modify the chart. Programmatically at run-time you would need to add a
series and set the series.DataSource property to be a datapipeline.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I mean the end-user report desinger and there i like to write
Data in the normal chart.
--- posted by geoForum on http://delphi.newswhat.com
Include ppChrtUI in the uses clause and then use the TeeChart editor to add
a datapipeline aware series to the TppDPTeeChart.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
sorry for my bad english but i think we misunderstand us.
This is an example in Delphi:
Series1.AddXY(1, 2, TimeToStr(Now),clblue);
It is possilbe to include this code in the end-user report desinger for
example
--- posted by geoForum on http://delphi.newswhat.com
1. First try to get it working using Delphi code. The TppTeeChart.Chart
property provides access to the TChart.
2. To implement the same code in RAP (the Calc workspace) will require that
you extend RAP. See the following article.
--------------------------------------------------
Article: Extending RAP
---------------------------------------------------
There are two very simple and powerful techniques to extend the capabilities
of RAP infinitely. These are summarized below and covered in more detail in
the RAP.hlp online help. Demos and tutorials are installed to
RBuilder\Demos\RAP. The tutorial text is located in RAP.hlp.
1. RAP Pass-Through Functions
These are functions that appear in the Language tab of RAP's Code Toolbox.
These functions are written in Delphi and can be called from RAP. RAP's
pass-through function architecture enable's developers to add new built-in
functions to RAP's code toolbox.
2. Extend RAP's RTTI
RAP's Run-time Type information defines what classes and properties can be
accessed via RAP. By default the published properties of any class that is
registered with Delphi's RegisterClass procedure is recognized by RAP. In
addition many of the public properties and methods of ReportBuilder classes
are exposed.
--
Tech Support mailto:support@digital-metaphors.com
Digital Metaphors http://www.digital-metaphors.com
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com