Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Modify Teechart series with RAP

edited February 2003 in General
Hi,

I would like to add a new series at run time or modify the values of a
series at run time using rap.
I can get access to a given series (see code below), but cannot use the
TChartSeries method to add a value to the series.
In this case, the series is not linked to a database. Which class should I
modify to make the "Add" method of teechart visible in RAP?

I am using RBuilder 6.03 Enterprise and I have a Teechart Pro v5.02

Thank you,
Max

I

Procedure HeaderBeforePrint;

ATeeChart: TppDPTeeChartControl;

ASeries:TChartSeries;

begin

ATeeChart:=DPTeeChart1.chart;

ASeries:=ATeeChart.SeriesList[0];



end;

Comments

  • edited February 2003
    Sorry, did not intent to post anonymously.

    Max Mujynya

  • edited February 2003
    Use a TppTeeChart, and add a series like this (untested):

    var
    lSrs: TSeriesClassName;
    begin
    lSrs := ppTeeChart1.Chart.AddSeries(TSeriesClassName) as TSeriesClassName;
    ...
    end;


    --
    Ed Dressel
    Team DM
This discussion has been closed.