# Bezier

The Bezier chart displays a series of points on a curved line. Two "control points" determine the position and amount of curvature in the line between end points.

#### Initial Setup

``````BezierSeries bezier = new BezierSeries();
bezier.DataPoints.Add(new BezierDataPoint(45, 30, 0, 0, 120, 140));
bezier.DataPoints.Add(new BezierDataPoint(5, 23, 0, 0, 95, 110));
BezierSeries bezier2 = new BezierSeries();
bezier2.DataPoints.Add(new BezierDataPoint(167, 173, 20, 15, 158, 190));
bezier2.DataPoints.Add(new BezierDataPoint(85, 25, 42, 75, 85, 97));
BezierSeries bezier3 = new BezierSeries();
bezier3.DataPoints.Add(new BezierDataPoint(20, 150, 0, 0, 20, 250));
bezier3.DataPoints.Add(new BezierDataPoint(80, 150, 80, 250, 0, 0));

``````
``````Dim bezier As New BezierSeries()
bezier.DataPoints.Add(New BezierDataPoint(45, 30, 0, 0, 120, 140))
bezier.DataPoints.Add(New BezierDataPoint(5, 23, 0, 0, 95, 110))
Dim bezier2 As New BezierSeries()
bezier2.DataPoints.Add(New BezierDataPoint(167, 173, 20, 15, 158, 190))
bezier2.DataPoints.Add(New BezierDataPoint(85, 25, 42, 75, 85, 97))
Dim bezier3 As New BezierSeries()
bezier3.DataPoints.Add(New BezierDataPoint(20, 150, 0, 0, 20, 250))
bezier3.DataPoints.Add(New BezierDataPoint(80, 150, 80, 250, 0, 0))

``````

Figure 1: Initial Setup

Here are some of the important properties of BezierSeries:

• ControlPoint1XMember: If a DataSource is set, the property determines the name of the field that holds the X coordinate of ControlPoint1.

• ControlPoint1YMember: If a DataSource is set, the property determines the name of the field that holds the Y coordinate of ControlPoint1.

• ControlPoint2XMember: If a DataSource is set, the property determines the name of the field that holds the X coordinate of ControlPoint2.

• ControlPoint2YMember: If a DataSource is set, the property determines the name of the field that holds the Y coordinate of ControlPoint2.

• XValueMember: If a DataSource is set, the property determines the name of the field that holds the XValue.

• YValueMember: If a DataSource is set, the property determines the name of the field that holds the YValue.