User (Legacy) Posted November 12, 2003 Report Share Posted November 12, 2003 I'm using Chartfx for Windows Forms.Net version 6.1. I want to plot values as a traditional xy chart, and so have set the gallery to scatter. How do I get a line to be drawn between the points on the scatter chart? 3 panes.bmp Link to comment Share on other sites More sharing options...
Software FX Posted November 12, 2003 Report Share Posted November 12, 2003 Instead of setting the gallery to Scatter set it to Lines. Lines also support X/Y values. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 14, 2003 Author Report Share Posted November 14, 2003 Thanks for this. So how do I set the DatasourceSettings for the data binding to say which values in my dataset are X values and which are Y values? With gallery type Lines, and setting the DatasourceSettings as follows: for each dc in dt.columns select case dc.ColumnName Case "Timestamp" Chart1.DataSourceSettings.DataType(dc.Ordinal) = DataType.Label Case "Temperature", "CO2", "Humidity" ' other columns are values Chart1.DataSourceSettings.DataType(dc.Ordinal) = DataType.Value Case Else ' other columns are for the grid and not the chart Chart1.DataSourceSettings.DataType(dc.Ordinal) = DataType.NotUsed end select next The point along horizontal axis seems to be always equally spaced depsite being seperated by random intervals of time. "SoftwareFX Support" <support@softwarefx.com> wrote in message news:Jy9fuQTqDHA.1560@WEBSERVER1... > Instead of setting the gallery to Scatter set it to Lines. Lines also > support X/Y values. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted November 14, 2003 Report Share Posted November 14, 2003 For your timestamp field you want to use DataType.XValue -- Regards, JC Software FX Support "JM" <jm> wrote in message news:yGn8xLpqDHA.1900@WEBSERVER1... > Thanks for this. > > So how do I set the DatasourceSettings for the data binding to say which > values in my dataset are X values and which are Y values? > > With gallery type Lines, and setting the DatasourceSettings as follows: > > for each dc in dt.columns > select case dc.ColumnName > Case "Timestamp" > Chart1.DataSourceSettings.DataType(dc.Ordinal) = > DataType.Label > > Case "Temperature", "CO2", "Humidity" > ' other columns are values > Chart1.DataSourceSettings.DataType(dc.Ordinal) = > DataType.Value > > Case Else > ' other columns are for the grid and not the chart > Chart1.DataSourceSettings.DataType(dc.Ordinal) = > DataType.NotUsed > end select > next > > The point along horizontal axis seems to be always equally spaced depsite > being seperated by random intervals of time. > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:Jy9fuQTqDHA.1560@WEBSERVER1... > > Instead of setting the gallery to Scatter set it to Lines. Lines also > > support X/Y values. > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.