Jump to content
Software FX Community

Lines beteen oints in scatter chart


User (Legacy)

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...