IPolarSeries.AddPolar
IPolarSeries
function AddPolar(Angle, Value: Double; Const ALabel: WideString; Valu: OLE_COLOR): Integer;
Type Library
TeeChartx
Description
The AddPolar function inserts a new Point to draw. The new point coordinates are expressed in Angle -> Vector format. Angles are expressed in degree units. Points are sorted and drawn in Angle ascending order.
Example [Visual Basic]
This code adds some random points to a PolarSeries:
TChart1.AddSeries scPolar
With TChart1.Series(0)
.asPolar.AddPolar 90, Rnd(1000), pi / 2, vbRed
.asPolar.AddPolar 180, Rnd(1000), pi, vbBlue
.asPolar.AddPolar 270, Rnd(1000), 3 * pi / 4, vbGreen
.asPolar.AddPolar 360, Rnd(1000), 2 * pi, vbYellow
End With