Page 1 of 1

ActiveX -> VCL

Posted: Mon Jan 24, 2005 3:23 am
by 9340674
How do you set a single existing point? In VB/ActiveX:

Code: Select all

tcMyChart( 2 ) .Series(0).PointValue(i) = 35
This is a simple 1 series, flat barchart.

Posted: Mon Jan 24, 2005 10:04 am
by Marjan
Hi.

How about this:

Code: Select all

Chart1.Series[0].YValues.Value[i] := 35;

Posted: Mon Jan 24, 2005 1:32 pm
by 9340674
Marjan wrote:Hi.

How about this:

Code: Select all

Chart1.Series[0].YValues.Value[i] := 35;
So PointValue is an ActiveX translation for the YValue(s) ?

That worked, thanks much.

Posted: Tue Jan 25, 2005 9:16 am
by Pep
Hi Chris,
So PointValue is an ActiveX translation for the YValue(s) ?
Not exactly, PointValue property was designed to return the value of the Series point at the index specified, but it allows you to set a Value too.

In the ActiveX version you can also use the YValue(s) property to set a value.

Posted: Wed Jan 26, 2005 8:36 pm
by 9340674
What about

Code: Select all

ActiveX: objChart.Axis.bottom.Position
Edit: It appears to be

Code: Select all

objChart.ChartHeight