Page 1 of 1

How to change values in Bargraph

Posted: Wed Sep 17, 2008 6:51 am
by 9346144
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?

Posted: Wed Sep 17, 2008 9:30 am
by narcis
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!