Profile Picture

Empty Data Points and its presentation on a line chart

Posted By Tim Strong 13 Years Ago
Author
Message
Tim Strong
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 4, Visits: 1

Hello,

We have a chart of line SeriersTypeLine.  We have some data value of DBNull and we want to present on the this line chart.  We does according to the document on how to handle the empty DATA point.  But we only have gap on the chart line for DBNUll value instead of the empty point representation which we define for empy points.  We need help about what is the correct approach for this:

Following are part of codes on how we do this:

=====================================================

Nevron.Chart.NLineSeriesBase mySeries = (Nevron.Chart.NLineSeries)myChart.Series.Add(Nevron.Chart.SeriesType.Line);

Nevron.Chart.NEmptyDataPointsAppearance edpAppearance = mySeries.EmptyDataPointsAppearance;

edpAppearance.MarkerMode = Nevron.Chart.EmptyDataPointsMarkerMode.Special;

edpAppearance.MarkerStyle.PointShape = Nevron.Chart.PointShape.Cross;

edpAppearance.MarkerStyle.FillStyle = new Nevron.GraphicsCore.NColorFillStyle(System.Drawing.Color.Black);

mySeries.XValues.FillFromDataTable(myTable, "TimeStamp");

mySeries.Values.FillFromDataTable(myTable, "Value");

==================================================================

We have some DBNUll for some rows of myTable "Value" column.  We want to show on this line chart that data is null at some time point ("TimeStamp" column)

Thanks.

 

Thid is a web application and we are doing this with Nevron.Chart.Webform ()

When we set a break point, we do notice following:

mySeries.Values.EmptyDataPoints are set in  following values:

mySeries.Values.EmptyDataPoints.ValueMode = Nevron.Chart.EmptyDataPointsValueMode.Skip;

mySeries.Values.EmptyDataPoints.CustomValue = 0.0;

mySeries.Values.EmptyDataPoints.Label = "";

Question: does this effect emptyDataPoint presentation?  If it does, what is the correct approach?

 

 






Similar Topics


Reading This Topic