Chart Subtype Series XYScatter EmptyDataPointsValueMode or DateTime Starts 1899


https://www.nevron.com/Forum/Topic8186.aspx
Print Topic | Close Window

By Oliver Krieger - 11 Years Ago
Hi all,
I have a datatable which contains three columns (TimeStamp, TagName, Value). Some tags has more values with timestamps, some less.

TimeStamp TagName Value
9/22/2013 10:33 AM TAG1 4
9/22/2013 10:34 AM TAG1 5
9/22/2013 10:35 AM TAG1 7
9/22/2013 10:36 AM TAG1 3
9/22/2013 10:37 AM TAG1 2
9/22/2013 10:33 AM TAG2 11
9/22/2013 10:36 AM TAG2 9
9/22/2013 10:37 AM TAG2 8

About this, I set the series to EmptyDataPointsValuMode.Averaqge (lineSeries.Values.EmptyDataPoints.ValueMode = Nevron.Chart.EmptyDataPointsValueMode.Average

If I choose the SubType “XYScatter (3)”, the series will be displayed with gaps, but with the right timestamp at the x axis.
If I choose the SubType “Series (0)”, the series will be displayed without gaps, but the x axis shows a timestamp from the year 1899.

I need a chart with no gaps in the series and the right timestamp on the x axis.
Thank you.

Oli






By Oliver Krieger - 11 Years Ago
Hi all,

i found a solution to show the emty data points in a xy scatter line chart.

Add the following code to the "code" tab.

lineSeries.XValues.EmptyDataPoints.ValueMode = Nevron.Chart.EmptyDataPointsValueMode.Average


By oli