The ChartFX documentation, aside from targeting the .NET Framework, normally targets the Visual Basic 6 development environment since not only it is more popular among COM developers but easier to use than C++; however, in response to the many customers' requests for sample applications that target the Visual C++ environment, I have compile a list of useful samples and have made them available through an article I posted on the following link:
http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxCS62&Source=http://support.softwarefx.com/kb/190/1/011.htm
There is a total of eaight samples that deal from using Annotations and Borders, to populating Realtime charts and customizing the chart's toolbar. Please note that each sample with the exception of the Toolbar Customization sample generates the charts programmatically; the Toolbar Customization sample adds the chart at design-time.
The Constant Lines and Axis Sections sample is specific to your request.
You need to set the XValues for your data. You can do as follows:
chart1.Data.X[0, 0] = 0;
chart1.Data[0, 0] = 12;
chart1.Data.X[0, 1] = 1;
chart1.Data[0, 1] = 10;
chart1.Data.X[0, 2] = 2;
chart1.Data[0, 2] = 15;