mcgd Posted September 3, 2008 Report Share Posted September 3, 2008 Hi,I'm trying out ChartFX Lite for some simple charting. I have a BindingSource which eventually refers to a DataTable with a number of fields. I want to plot one field as the X axis and another as the Y axis, but I don't see any way to specify which fields are used for charting. This seems to be a fairly simple thing to do. How can I tell the Chart object what fields to use?Thanks Quote Link to comment Share on other sites More sharing options...
Frank Posted September 3, 2008 Report Share Posted September 3, 2008 The DataType property allows you to select which columns to plot and how to use them (labels, x-values, Y-values). Quote Link to comment Share on other sites More sharing options...
mcgd Posted September 3, 2008 Author Report Share Posted September 3, 2008 Yes, I looked at that, but the problem is that it seems to be done by column number. I can't rely on particular columns being in particular positions - I need to do it by field name. Because I'm using a BindingSource, I don't know of a way of finding out what column names are at what positions. So I was hoping I would be able to give the chart object the names of the columns to use. Quote Link to comment Share on other sites More sharing options...
Frank Posted September 4, 2008 Report Share Posted September 4, 2008 In Chart FX Lite, the only way to identify the columns is by index. In Chart FX 7.0, you have the ability to specify which columns to use by name. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.