How to change values in Bargraph

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Maximator
Newbie
Newbie
Posts: 1
Joined: Fri Apr 21, 2006 12:00 am

How to change values in Bargraph

Post by Maximator » Wed Sep 17, 2008 6:51 am

I like to change values in bar-graph. The chart consists of one series and four bars. I like to change the value of the bars. How could this be realized?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Sep 17, 2008 9:30 am

Hi Maximator,

One option would be using DragPoint tool as shown in the All Features\Welcome\Tools\Drag Point example in the new features demo, available at TeeChart's program group.

The second option would be doing it at runtime like this:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var i: Integer;
begin
  for i:=0 to Series1.Count-1 do
    Series1.YValue[i]:=Series1.YValue[i]*2;
end;
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply